sql查询并把数据更新到另一个表中

update OpenBills  set peopleCount=(select rtNumber from Rooms where obId='ZD201005223') where obId='ZD201005223'

 

posted @ 2017-07-29 18:22  科技改变未来☆  阅读(2644)  评论(1编辑  收藏  举报