getcurconnjdbc20.sql
来自「derby database source code.good for you.」· SQL 代码 · 共 21 行
SQL
21 行
-- test getCurConnJdbc20-- this test will get run under jdk12 only. If run under jdk11x, will get an exception like-- following for call to newToJdbc20Method-- ERROR 38000: The exception 'java.lang.NoSuchMethodError: java.sql.Connection: method -- createStatement(II)Ljava/sql/Statement; not found' was thrown while evaluating an expression.-- method alias and table used latercreate procedure newToJdbc20Method() PARAMETER STYLE JAVA LANGUAGE JAVA EXTERNAL NAME 'org.apache.derbyTesting.functionTests.util.Jdbc20Test.newToJdbc20Method';create table T (a int NOT NULL primary key);insert into T values (1);-- now lets try a variety of errorscall newToJdbc20Method();-------------------------------------------------------------- drop the tabledrop table T;drop procedure newToJdbc20Method;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?