TAILIEUCHUNG - Oracle SQL Plus The Definitive Guide- P43

Oracle SQL Plus The Definitive Guide- P43:Every day, computer professionals the world over wake up, travel to the office, sit down in front of a computer, and begin another day working with that database called Oracle. Programmers write queries and stored procedures. Database administrators monitor performance, make database changes, and perform other maintenance tasks. Operations people may need to back up or recover a database. | previous page page_383 next page Page 383 TRUNCATE and WRAP both affect the same internal setting. Turning one on results in the other being turned off and vice versa. For example SQL SHOW WRAP wrap lines will be wrapped SQL SET TRUNCATE ON SQL SHOW WRAP wrap lines will be truncated While you can issue the SHOW WRAP command to see the current value of the WRAP setting you cannot issue SHOW TRUNCATE. The SHOW command does not recognize TRUNCATE as a valid SQL Plus setting. When you select data that is longer than the LINESIZE and the WRAP setting is off some versions of SQL Plus will print a warning message telling you that your rows may be truncated. SET UNDERLINE With the SET UNDERLINE command you can control the character used to underline column headings. You can also control whether or not column headings are underlined at all. SET UND ERLINE underline_char ON OFF where SET UND ERLINE Is the command which may be abbreviated to SET UND. underlinechar Is the character you want to use when underlining column headings. By default a dash character - is used. ON Causes column headings to be underlined and resets the underline character back to the dash. OFF Keeps column headings from being underlined. The following example shows the underline character being changed to an asterisk SQL SET UNDERLINE SQL SLECT USER FROm dual previous page page_383 next page previous page page_384 next page Page 384 USER JEFF You can also use SET UNDERLINE to turn underlining off completely for example SQL SET UNDERLINE OFF SQL SELECT USER FROM dual USER JEFF One reason you might turn underlining off would be if you wanted some columns to print without any heading at all. First you would turn UNDERLINE off. Then you would define column headings for all columns with the COLUMN command. Those headings you did want to print would need to include the underlines as part of the heading definition. Other headings would be defined as empty strings. SET WRAP The WRAP setting controls how SQL .

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.