问一个奇妙SQL执行语句 在一个表中有两个字段cldm1,cldm2,cldm1为主键,我现在要取出cldm2插入cldm1,但是cldm2中的值,有可能cldm1中有,请问这个怎么写一条语句来完成. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 试试这个语句:insert table1(你的表名) (cldm1)select cldm2 from table1 where cldm2 not in (select cldm1 from table1) insert into table_name(cldm1) select cldm2 from table_name where cldm2 not in (select cldm1 from table1) insert table2(cldm1) select cldm2 from table2 where cldm2 not in (select cldm1 from table2) insert into table select cldm2 from table where cldm2 not in (select cldm1 from table)看看這樣可不可以 7zip源码如何读?编译 关于宏定义的问题 关于屏幕监控的问题,小弟毕业设计遇到的问题,求达人指教,谢 如何添加消息映射入口 一小段代码 谁能告诉我意思是? 高分,“网页取证”怎样做?? 请问CClient类在哪个头文件中? 如何登陆安装了serv-u的(不能匿名的)ftp服务器? 我想在一个工作线程里做一个循环来检测发给自己的消息,怎么实现? CStatusBar支持Dock吗? 怎样获得一个菜单项运行的时间?★★(在线等待) 请给予串口通信的c或vc代码(不要用到控件),谢谢
insert table1(你的表名) (cldm1)
select cldm2 from table1 where cldm2 not in (select cldm1 from table1)
cldm2 not in (select cldm1 from table1)
看看這樣可不可以