I am trying to automate some scripts. Right now, I do:
sqlite3 testDB < mySqlScript.sql
I need to run this script multiple times, just changing my TableName in the script. So instead of manually doing
CREATE TABLE sometableXXX
insert into someTableXXX
I’d like to be able to pass something into mySqlScripts.sql so I can automatically insert that value in for
someTableXXX
is that possible? Thanks.
Is the whole SQL code different or just only the table name? Then I whould do something like this: