如何在Intersystems Cache中运行SQL脚本?

时间:2013-07-03 16:12:00

标签: intersystems-cache

我在一个文件(mysqlscript.sql)中有一个脚本,它基本上是由GO语句分隔的一堆插入/更新/删除

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

如何运行此脚本?

2 个答案:

答案 0 :(得分:1)

您可以尝试使用$ system.SQL。ImportDir()
当然,您可以在程序中读取文件并执行每个sql-query。

答案 1 :(得分:0)

工具Caché Monitor使用 GO 作为语句分隔符并连接到InterSystemsCaché。使用此工具,您可以执行脚本。