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