[英]Sql insert data from one table to another
i have a doubt. 我有个疑问。 i need the syntax for SQL SERVER – how to Insert Data From One Table to Another Table?
我需要SQL SERVER的语法-如何将数据从一个表插入到另一个表?
use INSERT INTO..SELECT
statement 使用
INSERT INTO..SELECT
语句
INSERT INTO table2 (col1,...)
SELECT col1,...
FROM table1
Insert INTO Table1 (UserName) (Select UName From Table2 b Where Table1.EID = b.EID)
但显示消息:
The multi-part identifier "Table1.EID" could not be bound.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.