I need to find records containing html code such as ' ' But when I try to run the select * from table_name where column like ' %'
I got prompt asking for the value of nbsp. I guess the database thinks that nbsp is a parameter. I am wondering if the is an escape character so that I can tell the database that "&" is part of my query string. I tryed '\\ ' but didn't work.
My environment is Oracle 9i with sqlplus client.
Thanks.
反斜杠应该可以工作,但我认为你需要开始查询
SET ESCAPE ON
In PL/SQL, you would use:
BEGIN select <Column> from <Table_name> into <Variable> where <Column> LIKE '\\ \\%' ESCAPE '\\'; END /
Resources:
LIKE Condition in Oracle® Database SQL Language Reference 11g Release 2 (11.2)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.