select a.*,b.* from rah_lender as a JOIN rah_lendinvestment as b ON a.lenderID=b.lenderID
where b.investStatus='swInvestment/CaiWu_ShouKuanGuandan'
and year(from_days( datediff( now( ), a.birthday)))>=40 and year(from_days( datediff( now( ), a.birthday)))<=60
where b.investStatus='swInvestment/CaiWu_ShouKuanGuandan'
and year(from_days( datediff( now( ), a.birthday)))>=40 and year(from_days( datediff( now( ), a.birthday)))<=60
本文提供了一个SQL查询案例,展示了如何从两个表中选择特定条件的数据,包括限定投资状态、年龄范围等。
963

被折叠的 条评论
为什么被折叠?



