5 个解决方案
#1
试试 out 输出参数
#2
举例说明要求,是在打印机中打印?
#3
就是在控制台中输出咯,相当于Eclipase的console窗口,sqlserver是print('123'),oracle是dbms_output.put_line('123'),db2是什么呢?
#4
values 'hello';
#5
begin
values('hello');
end
输出:
[错误] 脚本行:73-75 -------------------------------------
DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=);
values('hello';), DRIVER=3.50.152
消息: An unexpected token ")" was found following "
values('hello'". Expected tokens may include: ")".. SQLCODE=-104, SQLSTATE=42601, DRIVER=3.50.152
行: 2
values('hello');
end
输出:
[错误] 脚本行:73-75 -------------------------------------
DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=);
values('hello';), DRIVER=3.50.152
消息: An unexpected token ")" was found following "
values('hello'". Expected tokens may include: ")".. SQLCODE=-104, SQLSTATE=42601, DRIVER=3.50.152
行: 2
#1
试试 out 输出参数
#2
举例说明要求,是在打印机中打印?
#3
就是在控制台中输出咯,相当于Eclipase的console窗口,sqlserver是print('123'),oracle是dbms_output.put_line('123'),db2是什么呢?
#4
values 'hello';
#5
begin
values('hello');
end
输出:
[错误] 脚本行:73-75 -------------------------------------
DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=);
values('hello';), DRIVER=3.50.152
消息: An unexpected token ")" was found following "
values('hello'". Expected tokens may include: ")".. SQLCODE=-104, SQLSTATE=42601, DRIVER=3.50.152
行: 2
values('hello');
end
输出:
[错误] 脚本行:73-75 -------------------------------------
DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=);
values('hello';), DRIVER=3.50.152
消息: An unexpected token ")" was found following "
values('hello'". Expected tokens may include: ")".. SQLCODE=-104, SQLSTATE=42601, DRIVER=3.50.152
行: 2