深
深圳小吴
Unregistered / Unconfirmed
GUEST, unregistred user!
当用select 查询两个表时所选的字段是不是必须是相同?
如有:
表A:字段a1,a2,a3.....
表B:字段a1,a2,a4,a5.....
用以下语句查询出错说字段无效;
query1.sql.add('select A.a1,A.a2,A.a3 from A,B where A.a1=B.a1');
而用query1.sql.add('select A.a1 from A,B where A.a1=B.a1')则通过!
谢谢!
如有:
表A:字段a1,a2,a3.....
表B:字段a1,a2,a4,a5.....
用以下语句查询出错说字段无效;
query1.sql.add('select A.a1,A.a2,A.a3 from A,B where A.a1=B.a1');
而用query1.sql.add('select A.a1 from A,B where A.a1=B.a1')则通过!
谢谢!