database - Oracle SQL Developer - Unable to run queries using varchar field as identifier -


i'm new using oracle sql developer , using oracle db (have used mysql before)

i'm trying like:

select * content_definition content_id = "hhhh233"; 

where content_id is:

varchar2(1000 byte) 

but getting:

ora-00904: "hhhh233": invalid identifier 00904. 00000 -  "%s: invalid identifier" *cause:     *action: error @ line: 1 column: 52 

i'm not understanding why isn't working used queries time mysql. have been searching on nothing seems specific use case. appreciate if can set me in right direction on this. thanks

you need use single quotes character data; double quotes signify identifiers , aliases:

select * content_definition content_id = 'hhhh233'; 

Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -