Oracle pl-sql escape character (for a “ ' ”)

前端 未结 7 2497
灰色年华
灰色年华 2020-12-14 06:31

When I am trying to execute INSERT statement in oracle, I got SQL Error: ORA-00917: missing comma error because there is a value as Alex\'s T

相关标签:
7条回答
  • 2020-12-14 07:27

    In SQL, you escape a quote by another quote:

    SELECT 'Alex''s Tea Factory' FROM DUAL
    
    0 讨论(0)
提交回复
热议问题