📜  mysql 查找非字母数字字符 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:26.537000             🧑  作者: Mango

代码示例1
/*find rows in mysql with non-alphanumeric chars*/
SELECT * FROM user WHERE first_name REGEXP "[^A-Za-z0-9]+";

/*find rows with non-alphanumeric or space chars*/
SELECT * FROM user WHERE first_name REGEXP "[^A-Za-z0-9[:space:]]+";