SQLite - Run multi-line SQL script from file?

后端 未结 4 675
盖世英雄少女心
盖世英雄少女心 2021-02-01 12:49

I have the following SQL in a file, user.sql:

CREATE TABLE user
(
  user_id INTEGER PRIMARY KEY,
  username varchar(255),
  password varchar(255)
);
4条回答
  •  温柔的废话
    2021-02-01 13:36

    Multiple lines aren't a problem. There might be a platform issue, because I am able to run this example successfully using SQLite3 3.6.22 on OS X 10.5.8.

提交回复
热议问题