문제

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"
도움이 되었습니까?

해결책

You should use single quotes aroung SQL character literals like xxxx/xxxx:

SELECT * FROM "My Table" WHERE Field='xxxx/xxxx'
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top