SQLite中中实现 if not exist 类似功能,sqliteexist
需要实现:
if not exists(select * from ErrorConfig where Type='RetryWaitSeconds')
begin
insert into ErrorConfig(Type,Value1)
values('RetryWaitSeconds','3')
end只能用:
insert into ErrorConfig(Type,Value1)
select 'RetryWaitSeconds','3'
where not exists(select * from ErrorConfig where Type='RetryWaitSeconds')因为 SQLite 中不支持SP
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。