A,B表对比以后怎么把A表没有B表有的数据插入到A表中去

0798 2008-08-29 03:06:23
conn.execute("insert into a (customer,address) values ('"&b.customer&"','"&b.address&"') from net a inner join net_xf b on b.customer not in (select customer from net)")
---------------------------------------------------------------------
上面是我写的, 可不知道为什么不能成功,麻烦哪为朋友帮助改一下
...全文
49 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
gingerkang 2008-08-29
  • 打赏
  • 举报
回复
的确看不明白你写的语句
insert into net (customer,address) select customer,address from net_xf where customer not in (select customer from net)
egg_server 2008-08-29
  • 打赏
  • 举报
回复
....没看明白你写的
insert into a (customer,address) select customer,address from b where 你的条件
sy_binbin 2008-08-29
  • 打赏
  • 举报
回复
查查insert into select 的写法

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧