没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Windows下SQLite创建数据库
2010-12-23 00:43
SQLite 下载官方地址: http://www.sqlite.org/download.html
SQLite中创建数据库
核心提示:数据库文件出现在表成功创建后才出现。
1.打开cmd窗口
2.路径移动到SQLite3.exe所在目录
3.输入“sqlite3 数据库名.db”后点回车
4.创建表。表成功创建后,在SQLite3.exe所在目录下生成“数据库名.db”的文件。
就此可以自由操作数据库了。
==============================================
//下面是创建 数据库 表 的例子
C:\>cd sqlite3 //移动到SQLite3.exe所在目录
C:\sqlite3>sqlite3 test.db //自定义数据库名,但不出现数据库文件
SQLite version 3.6.22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> //以启动SQLite3数据库
sqlite> create table tb(id int); //创建表。这是出现自定义数据库文件test.db
sqlite> .databases //查看数据库. 最后面没有分号
seq name file
--- --------------- -------------------------
0 main C:\sqlite3\test.db // <-- 自定义数据库文件
sqlite> .tables //查看表. 最后面没有分号
tb
sqlite> .quit // 退出sqlite. 最后面没有分号
=====================================================
// 启动SQLite时导入以有数据库
C:\sqlite3>sqlite3 test.db
2010-12-23 00:43
SQLite 下载官方地址: http://www.sqlite.org/download.html
SQLite中创建数据库
核心提示:数据库文件出现在表成功创建后才出现。
1.打开cmd窗口
2.路径移动到SQLite3.exe所在目录
3.输入“sqlite3 数据库名.db”后点回车
4.创建表。表成功创建后,在SQLite3.exe所在目录下生成“数据库名.db”的文件。
就此可以自由操作数据库了。
==============================================
//下面是创建 数据库 表 的例子
C:\>cd sqlite3 //移动到SQLite3.exe所在目录
C:\sqlite3>sqlite3 test.db //自定义数据库名,但不出现数据库文件
SQLite version 3.6.22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> //以启动SQLite3数据库
sqlite> create table tb(id int); //创建表。这是出现自定义数据库文件test.db
sqlite> .databases //查看数据库. 最后面没有分号
seq name file
--- --------------- -------------------------
0 main C:\sqlite3\test.db // <-- 自定义数据库文件
sqlite> .tables //查看表. 最后面没有分号
tb
sqlite> .quit // 退出sqlite. 最后面没有分号
=====================================================
// 启动SQLite时导入以有数据库
C:\sqlite3>sqlite3 test.db
资源评论
- YinKaiLin2013-12-07不能用啊,是怎么回事?
- ZacharyLuke2014-05-05内容很正确,不过太少了
vivicai520
- 粉丝: 0
- 资源: 25
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功