例子如下:
1 -- 或 2 SELECT id,report_type FROM test_query WHERE report_type REGEXP '[0,2]'; 3 SELECT id,report_type FROM test_query WHERE report_type REGEXP '0|2'; 4 5 -- 且 6 SELECT id,report_type FROM test_query WHERE report_type REGEXP '(0,2)';
或
且
例子如下:
1 -- 或 2 SELECT id,report_type FROM test_query WHERE report_type REGEXP '[0,2]'; 3 SELECT id,report_type FROM test_query WHERE report_type REGEXP '0|2'; 4 5 -- 且 6 SELECT id,report_type FROM test_query WHERE report_type REGEXP '(0,2)';
或
且
相关文章: