随笔分类 - SQL
摘要:declare@temPassword varchar(50)select @temPassword=isnull([Password],'') fromA where LoginName=@LoginNameselect @temPassword假设@LoginName参数为123当表A中存在一表数据的LoginName为123,且[Password]字段确实为NULL,这时select @te...
阅读全文
摘要:将A表所有数据插入临时表#ttselect * into #tt from A查询临时表数据select * from #tt删除临时表drop table #tt
阅读全文
浙公网安备 33010602011771号