TAILIEUCHUNG - PL/SQL User’s Guide and Reference phần 9

Cách sử dụng cần chú ý Các nhân vật và ngày literals trong danh sách GIÁ TRỊ phải được bao bọc bởi dấu ngoặc đơn ('). Chữ số không được bao bọc bởi dấu ngoặc kép. SQL con trỏ ngầm và các thuộc tính NOTFOUND% con trỏ,% FOUND, ROWCOUNT%, và ISOpen% cho phép bạn truy cập thông tin hữu ích về việc thực hiện của một câu lệnh INSERT. | INSERT Statement Usage Notes Character and date literals in the VALUES list must be enclosed by single quotes . Numeric literals are not enclosed by quotes. The implicit cursor SQL and the cursor attributes NOTFOUND FOUND ROWCOUNT and ISOPEN let you access useful information about the execution of an INSERT statement. Examples The following examples show various forms of INSERT statement INSERT INTO bonus SELECT ename job sal comm FROM emp WHERE comm sal . INSERT INTO emp empno ename job sal comm deptno VALUES 4160 sTuRDEVIN Security GUARD 2045 NULL 30 . INSERT INTO dept VALUES my_deptno UPPER my_dname CHICAGO Related Topics SELECT Statement 11-96 PL SQL User s Guide and Reference Literals Literals A literal is an explicit numeric character string or Boolean value not represented by an identifier. The numeric literal 135 and the string literal hello world are examples. For more information see Literals on page 2-7. Syntax numericliteral characterjiteral Language Elements 11-97 Literals boolean_literal Keyword and Parameter Description character This is a member of the PL SQL character set. For more information see Character Set on page 2-2. digit This is one of the numerals 0 . 9. TRUE FALSE NULL This is a predefined Boolean value. Usage Notes Two kinds of numeric literals can be used in arithmetic expressions integers and reals. Numeric literals must be separated by punctuation. Spaces can be used in addition to the punctuation. A character literal is an individual character enclosed by single quotes apostrophes . Character literals include all the printable characters in the PL SQL character set letters numerals spaces and special symbols. PL SQL is case sensitive within character literals. So for example PL SQL considers the literals Q and q to be different. A string literal is a sequence of zero or more characters enclosed by single quotes. The null string contains zero characters. To represent an apostrophe within a string write two single quotes. PL SQL

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.