Why is peewee including the 'id' column into the mysql select query?

后端 未结 4 936
梦毁少年i
梦毁少年i 2021-02-05 17:07

I am trying to learn how to use peewee with mysql.

I have an existing database on a mysql server with an existing table. The table is currently empty (I am just testing

4条回答
  •  深忆病人
    2021-02-05 18:02

    You need to us peewee's create table method to create the actual database table before you can call select(), which will create an id column in the table.

提交回复
热议问题