TAILIEUCHUNG - Oracle SQL Plus The Definitive Guide- P27

Oracle SQL Plus The Definitive Guide- P27: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_234 next page Page 234 bind_yariable_name Is the name of the bind variable you want to print. If you omit a name the values of all bind variables are printed. The results from the PRINT command look very much like the results you get from a SELECT. Here s an example SQL PRINT my_string MYSTRING Brighten the corner where you are The bind variable is treated like a database column with the variable name being the default column heading. If you have page titles defined they will print as well. You can even use the COLUMN commands to format the output. The following example shows how this works SQL COLUMN my_string FORMAT A40 HEADING My Motto SQL PRINT my_string My Motto Brighten the corner where you are SQL SQL TTITLE LEFT This is a Page Title SKIP 2 SQL COLUMN my_number FORMAT HEADING My Age SQL PRINT my_number This is a Page Title My Age All other formatting options such as PAGESIZE and LINESIZE apply when printing bind variables. You can even use the COLUMN command s NEW_VALUE clause to store the value of a bind variable in a substitution variable as the following example demonstrates SQL DEFINE s_my_string SQL COLUMN my_string NOPRINT NEW_VALUE s_my_string SQL PRINT my_string SQL PROMPT s_my_string Brighten the corner where you are Issuing the PRINT command by itself causes the contents of all bind variables to be displayed. Here s an example SQL PRINT My Motto previous page page_234 next page previous page page_235 next page Page 235 Brighten the corner where you are My Age Some special considerations apply when printing bind variables of type CLOB and of type REFCURSOR. These are described in the following sections. Printing CLOB variables The CLOB datatype is new with Oracle8. CLOB stands for character large object and variables of this type can hold up to 2 gigabytes of text data. When printing variables of type CLOB or NCLOB there are three SQL Plus settings you can use to control what you see and how that works. See .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.