Re: Rows affected?
Posted in 2005
This is a multipart message in MIME format.
--=_alternative 00778DD785256FC0_=
Content-Type: text/plain; charset="US-ASCII"
Thanks for the responses.
I greatly appreciate it.
"rkusenet" <usenet.rk@gmail.com>
03/10/2005 03:17 PM
To
<Darren_Jacobs@carmax.com>
cc
Subject
Re: Rows affected?
select dbinfo('sqlca.sqlerrd2')
from systables
where tabid = 1
will tell you how many rows were affected by the last updates/deletes. Not
sure about
insert though.
<Darren_Jacobs@carmax.com> wrote
> Greetings,
>
> I have an application (Power Builder) that us being used to make
> inserts,updates, and deletes and the user would like to know how many
rows
> were affected by one of these operations. Is there a way to capture the
> "rows affected" and return it to the application? (ie, similar to what
is
> returned if using Sql Editor)
>
> Info window in Sql Editor
> -- Executing selected SQL statements in Untitled.sql.
> update backup_log_tbl set success_failed = "failed"
> where complete_dt < "2004-04-30 00:00:00.000";> -- 10 rows updated.
>
>
> IDS 9.40 FC2
> HPUX 11
--=_alternative 00778DD785256FC0_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2 face="sans-serif">Thanks for the responses.</font>
<br>
<br><font size=2 face="sans-serif">I greatly appreciate it.</font>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>"rkusenet" <usenet.rk@gmail.com></b>
</font>
<p><font size=1 face="sans-serif">03/10/2005 03:17 PM</font>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td valign=top><font size=1 face="sans-serif"><Darren_Jacobs@carmax.com></font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">Re: Rows affected?</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>select dbinfo('sqlca.sqlerrd2')<br>
from systables<br>
where tabid = 1<br>
</tt></font>
<br><font size=2><tt>will tell you how many rows were affected by the last
updates/deletes. Not sure about<br>
insert though.<br>
</tt></font>
<br><font size=2><tt><Darren_Jacobs@carmax.com> wrote<br>
</tt></font>
<br><font size=2><tt>> Greetings,<br>
><br>
> I have an application (Power Builder) that us being used to make<br>
> inserts,updates, and deletes and the user would like to know how many
rows<br>
> were affected by one of these operations. Is there a way to
capture the<br>
> "rows affected" and return it to the application? (ie,
similar to what is<br>
> returned if using Sql Editor)<br>
><br>
> Info window in Sql Editor<br>
> -- Executing selected SQL statements in Untitled.sql.<br>
> update backup_log_tbl set success_failed = "failed"<br>
> where complete_dt < "2004-04-30 00:00:00.000";<br>
> -- 10 rows updated.<br>
><br>
><br>
> IDS 9.40 FC2<br>
> HPUX 11</tt></font>
<br>
<br>
--=_alternative 00778DD785256FC0_=--
sending to informix-list