2014年10月27日
摘要: 在存储过程中select * from xxselect * from ddreturn这样的写法 在存储过程中会返回两个table 在后台获取即可 阅读全文
posted @ 2014-10-27 16:07 雪原日暮 阅读(105) 评论(0) 推荐(0) 编辑
摘要: --统计set @collSql='select sum(case Ca_IssueType when 0 then 1 else 0 end) as IssueCount,sum(case when Ca_IssueType>0 then 1 else 0 end) as ReIssueCount... 阅读全文
posted @ 2014-10-27 14:09 雪原日暮 阅读(269) 评论(0) 推荐(0) 编辑
摘要: drop table tableName_a select * into tableName_a from 这里无需定义临时表 直接创建 用完还有删除 阅读全文
posted @ 2014-10-27 09:03 雪原日暮 阅读(105) 评论(0) 推荐(0) 编辑