ON DELETE CASCADE in sqlite3

后端 未结 2 1837
醉酒成梦
醉酒成梦 2020-12-02 22:11

I have the following structure: (Sorry for awkward names, it is because it is a sqlite database for my iPhone app which is not released yet)

CREATE TABLE klb         


        
2条回答
  •  误落风尘
    2020-12-02 22:46

    Do you have foreign key support enabled?

    query PRAGMA foreign_keys = ON; to turn it on

提交回复
热议问题