SQL脚本和结果集

编程入门 行业动态 更新时间:2024-10-14 08:30:04
本文介绍了SQL脚本和结果集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嗨! 在我的应用程序中,我想让用户运行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脚本和结果集

本文发布于:2023-11-22 01:52:58,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1615515.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:脚本   SQL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!