现在的位置: 首页 > 综合 > 正文

使用sqlite3.exe建立数据库和表结构的方法

2013年08月15日 ⁄ 综合 ⁄ 共 398字 ⁄ 字号 评论关闭
D:\sqlite>cd D:\sqlite

D:\sqlite>sqlite3.exe portal2.db
SQLite version 3.7.17 2013-05-20 00:56:22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> create table user ( id integer primary key, name varchar(32) );
sqlite> .tables;
Error: unknown command or invalid arguments:  "tables;". Enter ".help" for help
sqlite> .tables
user
sqlite> insert into user values(333,'seee');
sqlite> select * from user;
333|seee
sqlite>

2 产生的数据库

抱歉!评论已关闭.