摘要:
Update XXX set XXX where 这种写法大家肯定都知道,才发现update和delete居然支持inner join的update方式,太神奇了。分享段示例代码:?12345updatetb_Usersetpass=''fromtb_User usrinnerjointb_Address addr onusr.nAddressFK = addr.nAddressIDwhereusr.id=123update的格式是update t1 set t1.name=’Liu’from t1inner join t2 on t1.id = t2.tiddelete 语句 阅读全文