各位老师:如何在sql中print一个某一列某一元素的内容?

2025-03-24 17:39:15
推荐回答(2个)
回答1:

Declare @i as int
select @i=ID from 表名
print @i

回答2:

Declare @i as int
select @i=列名 from 表名 where 主键=值
print @i