沒有符合條件的紀錄,爲何用max()取出的值不為空 select count(*) from table_a select ss = max(isnull(xxx,'')) from table_a where .... 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你可以如下格式返回的就不是空了declare @nIndex intselect @nIndex = max( filed_name ) from table_name if( @nIndex is null ) set @nIndex = 0 请问数据库两个不同版本的迁移问题? 谁能推荐本适合初学者自学的SQL的书,最好有点在书下载地址,谢谢啦 关于查询数据时出现的问题。 致一些“解决了”问题的人们!!! 請教一條SQL語句(急!在線等) sql问题 一个很不重的SELECT语句问题请高手来解答一下 是否只能在NT下才能安装SQL SEVER2000服务器端 紧急求助 请问MySQL和Interbase两者比较哪个更好? 本地SQLSERVER服务启动不了 关于SQL的存储过程的问题?
select @nIndex = max( filed_name ) from table_name
if( @nIndex is null ) set @nIndex = 0