Sqlite若是插入或更新數據庫

咱們常常會用到若是數據庫存在則更新,若是不存在則新增 sql通常寫爲sql if exists(select * from table where tableid=1) insert into table ... else update table .... 可是sqlite裏沒有if exists這種寫法,它用的是一種更簡單的語句數據庫 insert or replace into Forum(
相關文章
相關標籤/搜索