FairCom Corporation


2.23 INSERT


Description

Inserts new rows into the specified table/view that will contain either the explicitly specified values or the values returned by the query expression.

Syntax

INSERT INTO [owner_name.] { table_name | view_name }
[ (column_name, column_name, ...) ]
{ VALUES (value, value, ...) | query_expression };

Notes

Examples

INSERT INTO customer (cust_no, name, street, city, state)
VALUES
(1001, 'RALPH', '#10 Columbia Street', 'New York', 'NY') ;
INSERT INTO neworders (order_no, product, qty)
SELECT order_no, product, qty
FROM orders
WHERE order_date = SYSDATE ;

Authorization

The user executing this statement must have any of the following privileges:

If a query_expression is specified, then the user must have any of the following privileges:


FairCom Corporation
www.faircom.com