Quadcap Software

Quadcap Embeddable Database

Quadcap Software

INSERT Statement

The INSERT statement is used to insert new rows into a table or updatable view. The source of the new rows is a queryExpression, typically a VALUES expression or a SELECT expression.

Syntax

insertStmt
  :  "insert" "into" sqlId 
    (  LPAREN idList RPAREN 
    |  
    ) 
    (  queryExpression 
    |  "default" "values" 
    ) 
  ;


Examples

INSERT INTO STAFF VALUES ('E1','Alice',12,'Deale');
INSERT INTO TEMP_S
SELECT EMPNUM,GRADE,CITY
FROM STAFF
WHERE GRADE > 11;

Implementation Notes

None.