1c7 / VideoList

:us: -> :cn: @糖醋陈皮 翻译的视频列表
https://weibo.com/2004104451
57 stars 11 forks source link

Learn SQL The Hard Way 的笔记 #12

Closed 1c7 closed 11 years ago

1c7 commented 11 years ago

http://sql.learncodethehardway.org/book/ 教程用的数据库是 sqlite3


sqlite中 单行注释用 -- 多行注释用 /* */


创建一个叫 test.db 的空数据库:

 sqlite3.exe test.db 


练习1的笔记

可以把建表语句(create table ...) 写入 xxx.sql 里, 然后

sqlite3 ex1.db < xxx.sql

表就创建好了, 并且被放入了ex1.db文件里, ex1.db是数据库的名字, 可任意修改