且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

检查字段是否包含 SQL 中的特殊字符

更新时间:2023-02-06 12:06:04

我自己不久前不得不解决这个问题:

Had to solve this a little while ago myself:

使用正则表达式:

LIKE '%[^a-zA-Z0-9]%'

要解决搜索表的问题,请尝试:我如何在 SQL Server 数据库中的任何地方找到一个值? ,如果没有,我会在我使用的某个地方找到一个更好的值.

To solve the problem of searching the tables, try: How do I find a value anywhere in a SQL Server Database? , if not I got a better one somewhere that I use.