psql insert语句返回莫名其妙的错误

时间:2017-01-06 23:57:26

标签: sql insert psql

这是我的表:

       Table "public.enrollment_tgelf"
         Column          |          Type          | Modifiers 
-------------------------+------------------------+-----------
 course_entitlement_game | character varying(250) | 
 entitlement_subject     | character varying(250) | 
 school_name             | character varying(250) | 
 grade_level             | character varying(250) | 
 username                | character varying(250) | 

这是我的插入声明:

    INSERT INTO enrollment_tgelf (course_entitlement_game, entitlement_subject, school_name, grade_level, username) 
    VALUES
    ("Lexica Vol 1","NA","tGELF","1","tgelf1");

这是我的错误:

ERROR:  column "lexica vol 1" does not exist in enrollment_tgelf

我做错了什么?

1 个答案:

答案 0 :(得分:0)

使用单引号而不是双引号来分隔字符串文字。