J
jrq
Unregistered / Unconfirmed
GUEST, unregistred user!
》来自:balaschen, 时间:2002-4-1 17:31:00, ID:1016628
》用标准的写法试试:
》Select Name,Local,Age,
》 (Select Count(*) from List As A where A.Local=B.Local and A.Name<B.Name) As XH
》 from List As B order by XH,Local
》实在不行这么写:
》Select Name,Local,Age from
》(Select Name,Local,Age,
》(Select Count(*) from List As A where A.Local=B.Local and A.Name<B.Name) As XH
》 from List As B) As List order by XH,Local
》Sybase11.5,DB2都能支持
to balaschen:
多谢老兄昨天的帮助!
昨天是愚人节看来,我真是愚人一个! [] 我的SQL语句的水平也需要提高~
你写的这个我真的看不太明白!
今天也没有来的及翻书,请再给解释一下好吗!
Select Count(*) ....... 这个Count(*) 用在这个我不太明白的!
请留言,顺便拿分!
》用标准的写法试试:
》Select Name,Local,Age,
》 (Select Count(*) from List As A where A.Local=B.Local and A.Name<B.Name) As XH
》 from List As B order by XH,Local
》实在不行这么写:
》Select Name,Local,Age from
》(Select Name,Local,Age,
》(Select Count(*) from List As A where A.Local=B.Local and A.Name<B.Name) As XH
》 from List As B) As List order by XH,Local
》Sybase11.5,DB2都能支持
to balaschen:
多谢老兄昨天的帮助!
昨天是愚人节看来,我真是愚人一个! [] 我的SQL语句的水平也需要提高~
你写的这个我真的看不太明白!
今天也没有来的及翻书,请再给解释一下好吗!
Select Count(*) ....... 这个Count(*) 用在这个我不太明白的!
请留言,顺便拿分!