【sqlite】判断sqlite数据库表是否存在

SQLite语句:html cmd.CommandText = "SELECT count(*) from sqlite_master where type='table' and name='tableName'; int a= Convert.ToInt32(cmd.ExecuteScalar());sql    若是存在,则返回数值1;数据库   若是不存在,则返回数值0。post  if
相关文章
相关标签/搜索