1、插入完整行
格式:insert into table(
xxx_id,
xxx_name,
……
xxx_address)
valus(
'xxxxxx',
……
'xxxxxx');
示例:
insert into custnew (
cust_id,
cust_name,
cust_address,
cust_city,
cust_state,
cust_zip,
cust_country,
cust_contact,
cust_email)
values(
'1000000008',
'zhang',
'shitonglu street',
'shijiazhuang',
'sjz',
'3333',
'china',
'sun',
2、插入检索出的数据
insert into table1(
xxx_address
select
from table2;
示例:
insert into customers (
select cust_id,
cust_email
from custnew