문제

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?

도움이 되었습니까?

해결책

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

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top