各位大神 我在数据库中设置了ubirthday字段
想找出70年代出生的人 编辑了这条sql语句
select * from txl3 where ubirthday like '197[0-9]%'
但查询出任何数据 想求助各位大神
SELECT * from txl3 WHERE convert(varchar(40),ubirthday) LIKE '197[0-9]%'
SELECT * from txl3 WHERE convert(varchar(40),ubirthday) >= '1970' and convert(varchar(40),ubirthday) < '1980'
select * from txl3 where left(convert(varchar(40),ubirthday),2,4)='70'