摘要: update OpenBills set peopleCount=(select rtNumber from Rooms where obId='ZD201005223') where obId='ZD201005223' 阅读全文
posted @ 2017-07-29 18:22 沉迷编程的程序员 阅读(2649) 评论(1) 推荐(0) 编辑
摘要: 第一个查询的结果集 连接两个结果集的语句 第二个查询的结果集 连表的条件 阅读全文
posted @ 2017-07-29 13:01 沉迷编程的程序员 阅读(1763) 评论(0) 推荐(0) 编辑
摘要: if OBJECT_ID('tempdb..#temp') is not null drop table #temp select * into #temp from ( --select * from Activity select 7 as 'month',25 as 'day' union all select 7 as 'month',25 as 'day'... 阅读全文
posted @ 2017-07-29 10:01 沉迷编程的程序员 阅读(2874) 评论(0) 推荐(0) 编辑