如何在Syabse中通过jdbc执行程序

时间:2016-07-11 02:24:23

标签: jdbc sybase sybase-ase

我测试了Sybase ASE jdbc“jconn4.jar”到exec程序。 例如“sp_adduser N'probe',N'test12',N'test_group'”

CallableStatement cstmt = con.prepareCall("sp_adduser N'probe', N'test12', N'test_group'");

执行代码:

cstmt.executeQuery();
OR
cstmt.execute();

但他们都失败了。

有人可以帮我处理这个问题吗?

感谢advence

1 个答案:

答案 0 :(得分:0)

It would help if you include the error messages you got -- were there any?

As a first start: try adding the EXECUTE keyword?