How can i hold multiline sql query in a shell variable?
SQL='Lets get CREATE TRIGGER STATEMENT'
How to hold it?
Declare @sql nvarchar(max);
SET @sql='SELECT *'+char(13) +'FROM table'
Print(@sql);
result: SELECT *
FROM table
In above query char(13) will hepls to write in next line.
Now @sql variable has two lines.
mysql program.
newfileis just a variable name.