查询表是否存在的问题
泪奔。。。
exec(' if(object_id('##tableName','u') is not null) begin truncate '##tableName' end else begin create table ##tableName ( whID,int ) end')
exec(' if(object_id(''##tableName'',''u'') is not null) begin truncate table ##tableName end else begin create table ##tableName ( whID int ) end')