try:
$sql="select b.* form ssh_god a,table2 b  where a.sshg_price=10 and b.sshg_xtype=a.sshg_xtype";

解决方案 »

  1.   

    foolbirdflyfirst(湖水清澈) ( ) 信誉:100    Blog   加为好友 好象不行,你好你的a和b  指的是表名吗?  中间的.是连接符 吗?
      

  2.   

    A属性也就是sshg_xtype  实际上另一张表ssh_god1 中的sshg_xtype1=sshg_xtype 现在怎样select * form ssh_good1  ?
      

  3.   

    我搞明白了,《联合查询》
    我的代码:
    已实现~
    $sql = select table1.qq,table1.bb,table2.aa from table1,table2  where table1.tt = ""  or table2.mm = "";