本文共 436 字,大约阅读时间需要 1 分钟。
eg:在SQL2012中以下语句能运行:
insert into table1 values( select MAX(column1) from table2, variable2,variable3) 在SQL2005中不能运行(values中不支持子查询),应该是如下的格式: insert into table1 select MAX(column1) , variable2,variable3 from table2转载地址:http://orkab.baihongyu.com/