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

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

 

posted @ 2017-07-29 18:22  沉迷编程的程序员  阅读(2649)  评论(1编辑  收藏  举报