sqlite和sqlserver的语法差异
-
top n mssql: select top 2 * from table sqlite:select * from table limit 2
- exists
mssql:
if not exists (select \* from table where id=5) begin insert into table(field1) select 't' end
sqlite:
insert into table(field1) select 't' where not exists(select \* from table where id=5)
- 嵌套事务 sqlite仅允许单个活动的事务
- right和full outer join sqite不支持right和full outer join
- 可更新的视图 sqlite视图是只读的,不能对视图执行delete\insert\update操作 mssql是可以对视图执行delete\insert\update操作的。