表
table1(ID,name) table2(ID,name)
update 语句
sqlserver写法:
update table1 set table1.name = table2.name from table1 inner join table2 on table1.ID = table2.ID
access写法:
update table1 INNER JOIN table2 ON table1.ID = table2.ID
set table1.name = table2.name
delete语句
sqlserver写法:
delete table1 from table1 join table2 on table1.ID = table2.ID
或者
delete from table1 from table1 join table2 on table1.ID = table2.ID
access写法:
delete distinctRow a.* from table1 a inner join table2 on a.ID = table2.ID
总结以上是内存溢出为你收集整理的在sqlserver和acess的delete和update语句中使用join的不同写法全部内容,希望文章能够帮你解决在sqlserver和acess的delete和update语句中使用join的不同写法所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)