1. 程式人生 > >sqlite不存在記錄則插入資料

sqlite不存在記錄則插入資料

利用not exists語句

insert into deviceentry (customerId,allNumber) select 'c','d' 
where not exists (select * from deviceentry);