是不是这个意思啊:
select * from A
  where B='b'
    order by c
???

解决方案 »

  1.   

    试试这个....set @rownum:=0;
    select C,@rownum:=@rownum+1 as rownum, 
    from A where B='b' order by C desc rownum就是
      

  2.   

    我要在jdbc中写,哪位高人在帮忙看看?
      

  3.   

    lumberjake(伐木工)
    select * from A
      where B='b'
        order by c
    不行吗?
      

  4.   

    select * from A
      where B='b'
        order by c
    的话你并不知道B='b'的纪录排第几条阿?
      

  5.   

    select count(*) from A a1, A a2
    where a1.B = "b" and a2.c <= a1.c;