4 回答
TA贡献1802条经验 获得超6个赞
INSERT INTO table1 ( column1 )SELECT col1FROM table2
甲骨文 MS SQL Server MySQL 波斯特格斯 SQLite v3 特拉塔 DB2 赛贝斯 维蒂卡 HSQLDB 氢 AWS红移 SAP HANA
TA贡献1866条经验 获得超5个赞
INSERT
INSERT INTO column_1 ( val_1, val_from_other_table ) VALUES('val_1', (SELECT val_2 FROM table_2 WHERE val_2 = something))
TA贡献1829条经验 获得超9个赞
INSERT INTO target_table[(<column-list>)] SELECT ... FROM ...;
[dbase[@server]:][owner.]table
table"owner".tabledbase:tabledbase:owner.tabledbase@server:tabledbase@server:owner.table
someone.table"someone".tableSOMEONE.table
CREATE TABLE someone.table ( ... )
添加回答
举报