例如数据格式为 yyyy-mm-dd
查询不符合该格式的数据 :
select * from table
where not REGEXP_LIKE(字段名,'^((?:19|20)\d\d)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$')
例如数据格式为 yyyy-mm-dd
查询不符合该格式的数据 :
select * from table
where not REGEXP_LIKE(字段名,'^((?:19|20)\d\d)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$')