求一条SQL语句。。。 本帖最后由 wo6925371 于 2010-04-21 14:35:38 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select rownum=row_number()over(order by getdate()),* from tb--tb 为已查询结果 select *,id=(select count(1)+1 from tb where user_id<a.user_id)from tb a select * from t_user where user_id <> 'root'这句中的<>什么意思??<> 是不等于 和 != 是一样的 select *,id=(select count(1)+1 from tb where [user_id]<=t.[user_id])from tb t 能不能给解释一下这条语句??select *,id=(select count(1)+1 from tb where user_id<a.user_id)from tb a select *,id=(select count(1)+1 from tb where user_id<a.user_id)from tb a这句什么意思?? select count(1)+1 求自查询中user_id比外面tb表小的user_id的数量 select count(1)+1 from tb where user_id<a.user_id这句还是不太明白 where user_id<a.user_id 是怎么比大小的 为什么把这句去了 id的值就全是7了 不去id的值就是123456 大数据量(百万级)查询怎么解决? 两个不同SQL服务器之间的数据操作的问题 求一简单SQL语句 求一简单SQL语句! 一个SQL语句…… 一个查询结果中,不同的列要用不同的where条件,应该怎么办? 请教:对于对涉及到交易的历史记录数据的处理? 麻烦看下储存过程 SQL Server 7.0中 .MDF 和 .LDF 的文件格式有谁知道? 请问一个关于数据库关系的问题? 100分求一个查询语句 windows7下安装了sq2000后无法建表
--tb 为已查询结果
from tb a
<> 是不等于 和 != 是一样的
*,id=(select count(1)+1 from tb where [user_id]<=t.[user_id])
from
tb t
from tb a
from tb a这句什么意思?? select count(1)+1
求自查询中user_id比外面tb表小的user_id的数量
这句还是不太明白 where user_id<a.user_id 是怎么比大小的 为什么把这句去了 id的值就全是7了 不去id的值就是123456