Learn SQL The Hard way - Creating .sql with .db in SQL Lite 3 - Why and How?

前端 未结 3 1451
攒了一身酷
攒了一身酷 2020-12-30 14:52

As a beginning programmer with +20 hours of Python coding and novice familiarity with the command-line, I opened up Zed Shaw\'s \"Learn SQL The Hard Way\" and was quickly st

3条回答
  •  情书的邮戳
    2020-12-30 15:09

    1. Save your code in a file with the extension .sql
    2. Then in the terminal: sqlite3 ex1.db < ex1.sql for create a ex1.db
    3. Put in the terminal: sqlite3 ex1.db .schema
    4. Or put: sqlite3 ex1.db [... and then....] .schema

提交回复
热议问题