select * from tablea where tablea.flda=tableb.fldb and ...

解决方案 »

  1.   

    select * from table1 where sfzh=(select sfzh from table2)
      

  2.   

    select table1.* from table1,table2
    where table1.fielda=table2.fieldb;
      

  3.   

    各路高手给显神通。
    呵呵,,请看数据库原理---sql介绍。
      

  4.   

    如果是sqlserver,可以这样写
    select a.* ,b.* from a,b where a.a1=substring(b.b1,2,10)
    此语句列出a表的字段a1等于b表中b1字段从第二个字符到第10个字符间的字串的所有记录
      

  5.   

    如果是sqlserver,可以这样写
    select a.* ,b.* from a,b where a.a1=substring(b.b1,2,10)
    此语句列出a表的字段a1等于b表中b1字段从第二个字符到第10个字符间的字串的所有记录
      

  6.   

    得到两个表中满足条件的所有字段
    1) select a.*,b.* from a,b where a.x = b.x .....
    得到A表中满足条件的所有字段
    2) select * from a where x in ( select x from b)......
      

  7.   

    呵呵,忘了删掉了,其实已经解决了,我是ORACLQ+BDE,上面没有对的答案。
      

  8.   

    select a.* ,b.* from a,b where a.a1=substring(b.b1,Start,Len)
      

  9.   

    上一个是SqlServer的
    这一个才是
    select a.* ,b.* from a,b where a.a1=substr(b.b1,Start,Len)