📄 testij.out
字号:
Testing various ij connections and comments in front of selectsorg.apache.derby.tools.ij extin/testij.sql ij> driver 'com.ibm.db2.jcc.DB2Driver';ij> --Bug 4632 Make the db italian to make sure string selects are workingconnect 'jdbc:derby:net://localhost:1527/wombat;create=true;territory=it:retrieveMessagesFromServerOnGetMessage=true;' USER 'dbadmin' PASSWORD 'dbadmin';ij> connect 'jdbc:derby:net://localhost:1527/wombat' USER 'dbadmin' PASSWORD 'dbadbmin';ij(CONNECTION1)> -- this is a comment, a comment in front of a select should not cause an errorselect * from sys.systables where 1=0;TABLEID |TABLENAME |& |SCHEMAID |&-----0 rows selectedij(CONNECTION1)> -- this is a comment, a comment in front of a values clauses should not cause an errorvalues(1);1 -----1 1 row selectedij(CONNECTION1)> -- Try some URL attributesdisconnect all;ij> connect 'jdbc:derby:net://localhost:1527/junk;create=true:retrieveMessagesFromServerOnGetMessage=true;' USER 'dbadmin' PASSWORD 'dbadbmin';ij> select * from APP.notthere;ERROR 42X05: Table 'APP.NOTTHERE' does not exist.ij> -- examples from the docsconnect 'jdbc:derby:net://localhost:1527/wombat;create=true:user=judy;password=judy;retrieveMessagesFromServerOnGetMessage=true;';ij(CONNECTION1)> connect 'jdbc:derby:net://localhost:1527/"./wombat":user=judy;password=judy;retrieveMessagesFromServerOnGetMessage=true;';ij(CONNECTION2)> connect 'jdbc:derby:net://localhost:1527/toursDB:retrieveMessagesFromServerOnGetMessage=true;';ERROR (no SQLState): null userid not supportedij(CONNECTION2)> connect 'jdbc:derby:net://localhost:1527/toursDB:retrieveMessagesFromServerOnGetMessage=true;' USER 'dbadmin' PASSWORD 'dbadbmin';ERROR 08004: The application server rejected establishment of the connection. An attempt was made to access a database, toursDB, which was not found.ij(CONNECTION2)> connect 'jdbc:derby:net://localhost:1527/wombat' USER 'APP' PASSWORD 'APP';ij(CONNECTION3)> connect 'jdbc:derby:net://localhost:1527/my-db-name;create=true:user=usr;password=pwd;retrieveMessagesFromServerOnGetMessage=true;';ij(CONNECTION4)> connect 'jdbc:derby:net://localhost:1527/my-db-name;upgrade=true:user=usr;password=pwd;retrieveMessagesFromServerOnGetMessage=true;';ij(CONNECTION5)> connect 'jdbc:derby:net://localhost:1527/my-db-name;shutdown=true:user=usr;password=pwd;'----- Quoted db and attributesconnect 'jdbc:derby:net://localhost:1527/"./my-dbname;create=true":user=usr;password=pwd;';ERROR 08006: DB2 SQL error: SQLCODE: -1, SQLSTATE: 08006, SQLERRMC: Database 'my-db-name' shutdown.ij(CONNECTION5)> connect 'jdbc:derby:net://localhost:1527/"./my-dbname;create=true":user=usr;password=pwd;retrieveMessagesFromServerOnGetMessage=true;';ij(CONNECTION6)> -- with no userconnect 'jdbc:derby:net://localhost:1527/wombat;create=true:retrieveMessagesFromServerOnGetMessage=true;';ERROR (no SQLState): null userid not supportedij(CONNECTION6)>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -