select * from ipgk where convert(date,'20'+substring(p_date,7,2)+'-'+substring(p_date,1,2)+'-'+substring(p_date,4,2),0) between '2019-01-01' and '2019-04-01'
2020年06月21日 07点06分
这样查询条件可能也要为 yyyy-mm-dd格式了
2020年06月21日 07点06分
还有这个是SQL server的,其他数据库的我也不会
2020年06月21日 07点06分