ORA-01756: quoted string not properly terminated when I try to execute my code

前端 未结 3 1732
[愿得一人]
[愿得一人] 2021-01-18 08:34

I keep getting the following message every time I try to run this code in oracle. The code is as follows:

DROP TABLE movie;
CREATE TABLE movie (movie_id NUMB         


        
3条回答
  •  时光说笑
    2021-01-18 09:07

    Escape single quotes:

    INSERT INTO movie (movie_id, title, description, released_by, released_on)VALUES('4', 'Godzilla', 'The legendary tale of Godzilla comes roaring back to life. This time, it''s the modern era, and Godzilla is a giant lizard who has been made fearsome through the interference of radiation.', '1', '16-SEP-2014');
    

    Notice the it''s instead of it's.

提交回复
热议问题