嗨! 在我的应用程序中,我想让用户运行SQL代码片段,如: BEGIN ATOMIC DECLARE X BIGINT; SET X = 3; 更新表.... ... 结束 是否可以从中获得ResultSet? 祝你好运, Kovi - - 〜 - 〜 - 〜 - 〜 - 〜 - ~~~~~~~~~~~ 〜 - 〜 - 〜 - 〜 - 〜 - ~~~~~~~~~ | Gregor Kovac | Gr**********@mikropis.si | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /> |在一个没有围栏需要盖茨的世界里? | |体验Linux。 | - 〜 - 〜 - 〜 - 〜 - 〜 - 〜 - ~~~~~~~~~~~~~~~~~~~~~~ 〜 - 〜 - 〜
Hi! In my application I''d like to let the user run SQL snippets like: BEGIN ATOMIC DECLARE X BIGINT; SET X = 3; UPDATE TABLE .... ... END Is it possible to get a ResultSet from that? Best regards, Kovi -- -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ | Gregor Kovac | Gr**********@mikropis.si | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | In A World Without Fences Who Needs Gates? | | Experience Linux. | -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
推荐答案在文章< op ***************** @ news .siol>,Gregor Kovac (gr**********@mikropis.si)说...... In article <op*****************@news.siol>, Gregor Kovac (gr**********@mikropis.si) says... 嗨! 在我的应用程序中,我想让用户运行SQL代码片段,如: BEGIN ATOMIC DECLARE X BIGINT; SET X = 3; <更新表.... ... 是否可以从中获取ResultSet? 最好的问候, Kovi Hi! In my application I''d like to let the user run SQL snippets like: BEGIN ATOMIC DECLARE X BIGINT; SET X = 3; UPDATE TABLE .... ... END Is it possible to get a ResultSet from that? Best regards, Kovi
如果您想知道哪些行已更新,请检查 www.databasejournal/ featu ... le.php / 3342211
If you mean that you want to know which rows were updated then check the article at www.databasejournal/featu...le.php/3342211
Gert van der Kooij写道: Gert van der Kooij wrote: 在文章< op ***************** @ news.siol> ;, Gregor Kovac (gr ********** @ mikropis .si)说... In article <op*****************@news.siol>, Gregor Kovac (gr**********@mikropis.si) says... 嗨! 在我的应用程序中,我想让用户运行SQL代码片段,如: BEGIN ATOMIC DECLARE X BIGINT; SET X = 3; UPDATE TABLE .... ... END 是有可能从中得到一个ResultSet吗? 致以诚挚的问候, Kovi Hi! In my application I''d like to let the user run SQL snippets like: BEGIN ATOMIC DECLARE X BIGINT; SET X = 3; UPDATE TABLE .... ... END Is it possible to get a ResultSet from that? Best regards, Kovi
如果你的意思是你想知道哪个行被更新然后检查 www.databasejournal/featu...le.php/3342211
嗨! 是的,有趣。我确实知道那些数据更改表引用的东西, 但这对我没什么帮助,因为声明: SELECT * FROM FINAL TABLE( BEGIN ATOMIC DECLARE X BIGINT; SET X = 3; UPDATE TABLE ... 。 ... 结束 ) 不起作用。 祝你好运, Kovi - - 〜 - 〜 - 〜 - 〜 - 〜 - 〜 - 〜 - 〜 - 〜 - 〜 - 〜 - 〜 - ~~~~~~~~~~~~~~~~~~ | Gregor Kovac | Gr**********@mikropis.si | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /> |在一个没有围栏需要盖茨的世界里? | |体验Linux。 | - 〜 - 〜 - 〜 - 〜 - 〜 - 〜 - ~~~~~~~~~~~~~~~~~~~~~~ 〜 - 〜 - 〜
Hi! Yes, interesting. I do know about those data-change-table-reference stuff, but that does not help me much, since the statement: SELECT * FROM FINAL TABLE( BEGIN ATOMIC DECLARE X BIGINT; SET X = 3; UPDATE TABLE .... ... END ) does not work. Best regards, Kovi -- -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ | Gregor Kovac | Gr**********@mikropis.si | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | In A World Without Fences Who Needs Gates? | | Experience Linux. | -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
Gregor Kova ??写道: Gregor Kova?? wrote: Gert van der Kooij写道: Gert van der Kooij wrote: 文章< op ************* ****@news.siol> ;, Gregor Kovac (gr**********@mikropis.si)说...... In article <op*****************@news.siol>, Gregor Kovac(gr**********@mikropis.si) says... 嗨! 在我的应用程序中,我想让用户运行SQL代码片段,如: BEGIN ATOMIC DECLARE X BIGINT; SET X = 3; UPDATE TABLE .... ... 是否可以从中获取ResultSet? 最好的问候, Kovi Hi!In my application I''d like to let the user run SQL snippets like:BEGIN ATOMIC DECLARE X BIGINT; SET X = 3; UPDATE TABLE .... ...ENDIs it possible to get a ResultSet from that?Best regards, Kovi
如果您想知道哪些行已更新,请检查上的文章/> www.databasejournal/featu。 ..le.php / 3342211
嗨! 是的,有趣。我确实知道那些数据更改表引用的东西,但这对我没什么帮助,因为声明: SELECT * FROM FINAL TABLE( BEGIN ATOMIC DECLARE X BIGINT; SET X = 3; 更新表.... ... 结束) 不起作用。
Hi! Yes, interesting. I do know about those data-change-table-reference stuff, but that does not help me much, since the statement: SELECT * FROM FINAL TABLE( BEGIN ATOMIC DECLARE X BIGINT; SET X = 3; UPDATE TABLE .... ... END ) does not work.
不需要在某处沙子中划一条线.. :-) 你能用吗?存储过程或SQL表函数? 干杯 Serge - Serge Rielau DB2解决方案开发 适用于Linux,Unix,Windows的DB2 UDB IBM多伦多实验室
No it doesn''t needed to draw a line in the sand somewhere.. :-) Can you use a stored procedure or an SQL Table function? Cheers Serge -- Serge Rielau DB2 Solutions Development DB2 UDB for Linux, Unix, Windows IBM Toronto Lab
更多推荐
SQL脚本和结果集
发布评论