有两个数据表 t_user  和 t_qxb 分别用来存取用户密码和权限.
请问这句话是什么意思
SQL.Add('select * form T_user a, t_qxb b where (a.用户='''+Name+''') and 
       (a.密码='''+password+''') and (a.用户=b.用户名) order by b.菜单项';这里面的a,b 是什么意思呀?

解决方案 »

  1.   

    T_user t_qxb 两个表的别名
    等同于:
    SQL.Add('select * form T_user, t_qxb where (T_user.用户='''+Name+''') and 
           (T_user.密码='''+password+''') and (T_user.用户=t_qxb .用户名) order by t_qxb .菜单项';
      

  2.   

    我是非sql帖子不回 没想到看到了这个问题
      

  3.   

    表别名
    T_user =a, t_qxb =b
      

  4.   

    表示表的别名其中a表示表T_user,b表示表 t_qxb