I want to perform my query on a string in this format, xxxx/xxxx
where x is a number. when I perform it using the Oracle interface or my C# application I get this error:
ORA-00904: "xxxx/xxxx": invalid identifier
I performed this query:
SELECT * FROM "My Table" WHERE Field="xxxx/xxxx"
您应该在SQL字符文字(如xxxx / xxxx)周围使用单引号:
SELECT * FROM "My Table" WHERE Field='xxxx/xxxx'
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.