代码改变世界

delete Update inner join 的使用

2010-12-13 17:31  假面Wilson  阅读(264)  评论(0编辑  收藏  举报
sql server下应该这么写
    delete from a from a inner join b on a.id=b.id

而Access中写为
    delete from a inner join b on a.id=b.id


update 语句也不同
    Access
        update  a inner join b on a.id=b.id set a.pwd=b.pwd 
   
   SQL Server
        update a set a.pwd=b.pwd from a inner join b on a.id=b.id