如何在这个语句中添加一些语句,查找出Datetime小于1998年的数据:select gl1.userid,gl1.name,gl2.datetime,gl2.section,gl2.wage from gl1,gl2 where gl1.userid=gl2.userid and gl2.wage>800;
select gl1.userid,gl1.name,gl2.datetime,gl2.section,gl2.wage from gl1 inner join gl2 on gl1.userid=gl2.userid where gl2.wage>800 and Datetime<1998
不知道这样是不是你要的东西哦?本人没去测试
select gl1.userid,gl1.name,gl2.datetime,gl2.section,gl2.wage from gl1 inner join gl2 on gl1.userid=gl2.userid where gl2.wage>800
and gl2.datetime<‘1998-01-01’