Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我正在编写一条 SQL 语句,并且我想找到所有包含奇怪字符的行。有没有办法用 MySQL 做到这一点?
SELECT foo, bar, beep, bop FROM widgets WHERE widget_name REGEXP '???'
Perl 等价物类似于
/\x{FFF}/ # character ordinal 4095, unused tibetan character
如果您想查找无法以某种特定编码表示的字符串,例如 Windows-1252,您可以将字符串转换为该编码并与自身进行比较:
WHERE CONVERT(widget_name USING latin1) != widget_name