标签:style blog http color sp div 2014 log as
1,判断表是否存在:
SELECT name, sql FROM sqlite_master WHERE type="table" AND name = "Dom"
结果如下:
2.判断视图是否存在:
SELECT count(*) FROM sqlite_master WHERE type = "view" AND name = "myView"
结果如下:
type=‘view‘判断视图.结果>0就是有这个视图
标签:style blog http color sp div 2014 log as
原文地址:http://www.cnblogs.com/huxiaolin/p/4157546.html