-1

I have a data in oracle db DJSHJSJD-DJDJJJDK-D'FJDJSS when i tried to do a filter it is throwing error

select * from test
where dummy='DJSHJSJD-DJDJJJDK-D'FJDJSS' ;

ORA-00933: SQL command not properly ended
00933. 00000 -  "SQL command not properly ended"
*Cause:    
*Action:
Data2explore
  • 452
  • 6
  • 16

1 Answers1

0
where dummy='DJSHJSJD-DJDJJJDK-D''FJDJSS' ;

I.e. double the quote character inside the string literal.

jarlh
  • 42,561
  • 8
  • 45
  • 63