1.插入完整的行數據
e.g. INSERT INTO customers VALUES('Mary','USA'); 要按在表中定義的列的順序插入new
或
INSERT INTO customers(cust_name,cust_address) VALUES('Mary','USA'); 提供了列名,要按列名插入
2.插入多個行
INSERT INTO customers(cust_name,cust_address)
VALUES('Mary','USA'),
VALUES('Jane','USA');
3.插入檢索出的數據
INSERT INTO customers(cust_name,cust_address)
SELECT cust_id,cust_name,cust_address
FROM custnew;