我想知道是否有可能做一个INSERT语句与已经存在的记录。例如:
INSERT语句与现有的记录
insert into tbl(item_name, item_price) values(select item_name, item_price from tbl where id = 5)
说的id是自动递增的PK。
当我尝试类似这样的东西,我得到错误:
Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword 'select'.
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near ')'.
我失去了一些东西,或者是这是不可能的?
标题编辑... – 2011-02-25 00:28:33