“column not allowed here” error in INSERT statement

前端 未结 8 2454
心在旅途
心在旅途 2020-12-05 17:39

I created this table called LOCATION by doing this:

CREATE TABLE LOCATION(
POSTCODE VARCHAR(10) PRIMARY KEY,
STREET_NAME VARCHAR(20),
CITY VARCHAR(20));
         


        
8条回答
  •  南笙
    南笙 (楼主)
    2020-12-05 18:19

    This error creeps in if we make some spelling mistake in entering the variable name. Like in stored proc, I have the variable name x and in my insert statement I am using

    insert into tablename values(y);
    

    It will throw an error column not allowed here.

提交回复
热议问题