Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在HSQLDB GUI中一次执行多个命令?_Sql_Hsqldb - Fatal编程技术网

如何在HSQLDB GUI中一次执行多个命令?

如何在HSQLDB GUI中一次执行多个命令?,sql,hsqldb,Sql,Hsqldb,我有许多命令要从GUI执行。我想分很多组做这些,但我不能让一个小组工作。我想我需要以某种方式强制他们之间的承诺,但我不知道怎么做。如果我按顺序执行这些命令中的每一个,一切都会按预期进行 我正在使用GeoTools的EPSG.zip中的EPSG.dat unzip EPSG.zip perl -pi -e 's/readonly=true/readonly=false/' EPSG.properties java -jar hsqldb-2.4.1.jar jdbc:hsqldb:file:./

我有许多命令要从GUI执行。我想分很多组做这些,但我不能让一个小组工作。我想我需要以某种方式强制他们之间的承诺,但我不知道怎么做。如果我按顺序执行这些命令中的每一个,一切都会按预期进行

我正在使用GeoTools的EPSG.zip中的
EPSG.dat

unzip EPSG.zip
perl -pi -e 's/readonly=true/readonly=false/' EPSG.properties

java -jar hsqldb-2.4.1.jar
jdbc:hsqldb:file:./EPSG

SET AUTOCOMMIT true;  -- Press Execute SQL, but this doesn't seem to help.

CREATE TEXT TABLE EPSG_UNITOFMEASURE_COPY (LIKE EPSG_UNITOFMEASURE);                                                      
GRANT all ON  EPSG_UNITOFMEASURE_COPY TO public;                                                                          
SET TABLE EPSG_UNITOFMEASURE_COPY SOURCE 'EPSG_UNITOFMEASURE_COPY.csv;encoding=UTF-8';                                    
INSERT INTO EPSG_UNITOFMEASURE_COPY SELECT * FROM EPSG_UNITOFMEASURE;                                                     
SET TABLE EPSG_UNITOFMEASURE_COPY SOURCE OFF;                                                                             
然后我得到一个错误:

user lacks privilege or object not found: EPSG_UNITOFMEASURE_COPY / Error Code: -5501 / State: 42501

我很确定这是一个未找到的
对象
案例

不能将这些命令作为一个块执行。当模式定义语句引用模式对象时,该对象必须已经存在


执行创建文本表,然后您可以将其余部分作为块执行。

这是后续操作,看起来像FOO.script,UI执行窗口中的粘贴命令的行为完全不同。太令人困惑了。