数据库创建的操作及使用

Steps: 1. 数据库创建及查询; 命令: 创建数据库:create database demo_db; 查询所有已经存在的数据库:show databases; 2. 删除数据库(慎重使用,删除不可恢复); 命令: drop database drop_demo_db ...

Mon Jul 12 00:49:00 CST 2021 0 155
SQLite数据库是否存在

SQLite语句: cmd.CommandText = "SELECT count(*) from sqlite_master where type='table' and name='tableName'; int a= Convert.ToInt32(cmd.ExecuteScalar ...

Thu May 28 02:13:00 CST 2015 1 2969
sqlite 查看数据库和字段

查看所有名: select name from sqlite_master where type='table' order by name; 查看表的字段: PRAGMA table_info([tablename]); tablename 为实际 ...

Tue Jul 23 23:22:00 CST 2019 0 3288
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM