I am trying to learn SQL and, more importantly, how it is supposed to be used.
I can understand the syntax of SQL through tutorials. However, I am confused about how to run an SQL script. I have installed mySQL and SQlite3.
As I understand it an SQL script can be fed into mySQL or SQlite3 from the command line and the output is then written to a database or the database is modified by the code. This can be done using a command like
$ sqlite3 data.db < script.sql
Is my understanding correct? Any advice or clarifications would be greatly appreciated.
Thanks in advance.
Bookmarks