有一张A表A字段创建时间,B表B字段创建时间
查询B字段的创建时间不超过A字段的创建时间,就查询出来
怎么写哦 求帮助
假设A表和B表用key1结合。
查询B表
select *
from A,B
where A.key1 = B.key1
and B."B" <= A."A";
select * from (select * from A) a
where a.time >= time
select * from A,B
where A.id = B.Aid
and A.create <![CDATA[ >= ]]> B.createTime