我在SQL2000中,使用如下语句:
select tel_yChongzhi.*,tel_userMoney.memo from tel_yChongzhi,tel_userMoney where tel_yChongzhi.khquhao='371'and tel_yChongzhi.khuser=tel_userMoney.usercode order by tel_ychongzhi.khuser asc , tel_userMoney.memo asc为什么不能成功?只有第一个(khuser)排序了,第二个没有排序啊 ,怎么解决这个问题???

解决方案 »

  1.   

    select tel_yChongzhi.*,tel_userMoney.memo from tel_yChongzhi,tel_userMoney
    ???????????????????????????????????????????????????????????????????????????
    本人初学SQL
    请教各位大侠
    上面的语句用的对吗?
      

  2.   

    select tel_yChongzhi.*,tel_userMoney.memo from tel_yChongzhi,tel_userMoney where tel_yChongzhi.khquhao= '371 'and tel_yChongzhi.khuser=tel_userMoney.usercode order by tel_ychongzhi.khuser asc , tel_userMoney.memo asc 为什么不能成功?只有第一个(khuser)排序了,第二个没有排序啊 ,怎么解决这个问题???第一个排了后,在第一个的基础上再排第二个的.不是先对第二个进行排序.