How do you enable LIMIT for DELETE in SQLite?

前端 未结 4 1593
灰色年华
灰色年华 2020-11-28 13:42

Using PHP, I have a simple database that may store multiple items with the same content. I want to delete the first occurrence of an instance when I use DELETE.

How

4条回答
  •  青春惊慌失措
    2020-11-28 14:26

    From here, it seems that you have to compile the SQLite source code using

    #define SQLITE_ENABLE_UPDATE_DELETE_LIMIT
    

    in order to enable it.

提交回复
热议问题