请问怎样把记录的个数值赋给变量? declare @xselect @x=select count(distinct age ) from table1 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 declare @xselect @x=select count(distinct age ) from table1select @x --查詢 declare @xselect @x=select count(distinct age ) from table1 select @x=(select count(*) from (select distinct age from table1) a) declare @x intselect @x=(select count(*) from (select distinct age from table3) a)select @x不要忘了变量申明 这个insert怎么写 求助各位大大~~~ 这个错误提示是什么意思? 求助,用ODBC API分配语句句柄的问题! sql6.5的数据库怎样恢复到sql2000中去 .mdf与.ldf文件??? 请大家帮忙看看这个数据库查询内容转为textbox的有什么问题?老是不对,谢谢! 高分求解一个SQL查询问题,希望这方面的高手给予援助 如何判断输入的起始日期和终止日期是否包含在数据库的某条记录起始和终止日期之内 SQL 2000 重复数据查询问题 急用:安装问题 各位帮忙阿!sql安装时出现问题,无法安装!
select @x=select count(distinct age ) from table1
select @x --查詢
select @x=select count(distinct age ) from table1
select @x=(select count(*) from (select distinct age from table3) a)
select @x不要忘了变量申明