摘要:
-- ╔════════╗ -- =============================== ║ if语句使用示例 ║ -- ╚════════╝ declare @a int set @a=12 if @a>100 begin print @a end else begin print 'no 阅读全文
摘要:
在此上下文中不允许使用子查询。只允许使用标量表达式。Insert 查询结果-解决方法在insert语句中需要插入查询出来的值。 Insert into a (a1,a2,a3) values (1,select num from b where id=1,3) 这样写就出现了“在此上下文中不允许使用... 阅读全文