I've referenced the following link for my problem Execute SQLite script , but it doesn't seem to assist with my experience.
I am new to sqlite, and currently attempting to execute a create table script from the command line using the .read FILENAME function.. My code is the following:
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE MovieList (ID VARCHAR(255) PRIMARY KEY,
Title VARCHAR(255),
Studio VARCHAR(255) ,
Released VARCHAR(255) ,
Status VARCHAR(30) ,
Sound VARCHAR(30) ,
Versions VARCHAR(10) ,
Price VARCHAR(15) ,
Rating VARCHAR(15) ,
Movie_Year VARCHAR(5) ,
Genre VARCHAR(30) ,
Aspect VARCHAR(15) ,
UPC VARCHAR(255) ,
Release_Date VARCHAR(255) ,
Last_Updated VARCHAR(255)
);
COMMIT;
The error I get is Error: incomplete SQL: ??P
and I'm not too sure how to go about fixing this. The alternative was to create the table and export the .dump file - and it had the same logic as above. Is there something I may be missing?