sqlite returned: error code = 1, msg = no such column:kitchen1

前端 未结 2 1522
暖寄归人
暖寄归人 2021-01-13 06:48

I\'ve been getting this error for two days now, and I can\'t find the problem with my code.

here\'s the database code.

SQLHandler.java

2条回答
  •  失恋的感觉
    2021-01-13 07:20

    When trying to input strings for dummy data, you should call INSERT VALUES ("'text'") instead of INSERT VALUES ( "text" )

    Explanation : Because the sql command will want to see a quote ' around the text and the outer quotes " is for java to recognise that what you are trying to pass in / concatenate is a string

提交回复
热议问题