如何把SQL中查询出来的某字段赋给一个变量

2025-03-10 05:31:24
推荐回答(1个)
回答1:

declare @aa varchar(50)
select @aa=isnull(字段名,'') from 表名 where 条件