SQL语句 select * from A where x like ✀%xxxx-xx-xx%✀

2025-03-22 22:03:05
推荐回答(5个)
回答1:

你这个字段类型是字符型还是日期型?如果是日期型,最好用year()函数取年份比较;
如果是字符型,可以用你的语句,就是含有%%中间的字符串的。

回答2:

sale是一个表,salenumber是sale表中的一个字段 like

回答3:

select * from Table where column not in ('Str1',int1)

回答4:

select * from A where x like date'%xxxx-xx-xx%'
用这个试试。

回答5:

我的mysql可以查到啊?你什么数据库?