Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有个疑问。我需要 SQL SERVER 的语法——如何将数据从一个表插入到另一个表?
使用INSERT INTO..SELECT声明
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.