0

I have a script in a file (mysqlscript.sql) that is basically a bunch of inserts/updates/deletes separated by GO statements

insert into ....
GO
update .....
GO

How do I run this script?

O.O
  • 11,077
  • 18
  • 94
  • 182
  • Be careful about differences between SQL dialects. You can encounter some problems even if you find out how to run the script. – Vlasec Jul 08 '13 at 10:00

2 Answers2

1

You can try to use $system.SQL.ImportDir()
And of course, you can read your file and execute each sql-query in your programm.

DAiMor
  • 3,185
  • 16
  • 24
0

The tool Caché Monitor use GO as statement separator and connects to InterSystems Caché. With this tool you can execute your script.

Andreas
  • 16
  • 1