--插入多条数据
insert into CCC(C_Id,C_Name)(newid(),select A_Name from AAA where A_Id not in
(select A_Id from BBB where B_DateTime='2009-09-03'))我想C_Id 插入的是全球唯一, 这样多条插入~ 老是报错。。 谁能指导我下~ 谢谢。
insert into CCC(C_Id,C_Name)(newid(),select A_Name from AAA where A_Id not in
(select A_Id from BBB where B_DateTime='2009-09-03'))我想C_Id 插入的是全球唯一, 这样多条插入~ 老是报错。。 谁能指导我下~ 谢谢。
insert ccc (C_Id,C_Name)select newid(),_Name from AAA
insert into tb(a,b,c) select d,e,f from tb
前后字段一一对应
select newid(),A_Name from AAA
where A_Id not in
(select A_Id from BBB where B_DateTime='2009-09-03')