问题
I have a table with a column "Remarks"...How to search "%" in this column?
回答1:
Like this
where Remarks like'%[%]%'
you need to put brackets around it, more info here LIKE (Transact-SQL)
回答2:
SELECT *
FROM YourTable
WHERE CHARINDEX('%', Remarks) > 0
回答3:
there are 2 ways, you could use
where Remarks like '%[%]%'
or
where Remarks like '%!%%' escape '!'
来源:https://stackoverflow.com/questions/6231744/how-to-search-for-in-sql-table-column