I am using a MySQL database, but thats is sort of irrelevant as I am asking about the SQL objects methods.
SQL Object - ExecuteNonQuery
How do I determine after using this iff any records have been changed - programatically, without have to do a search and determine the result.
I would like to try and use the following logic after the query
If rslt >0 then
......
else
.....
end if
SQL Object - ExecuteNonQuery
How do I determine after using this iff any records have been changed - programatically, without have to do a search and determine the result.
b4j:
Dim Qry as string
Dim Sql as SQL
Qry="update sometable set somefgield=1"
SQL.ExecuteNonQuery(Qry)
Back in vb6 days
rslt=0
Sql.execute Qry, rslt
rslt = number of recods affected
I would like to try and use the following logic after the query
If rslt >0 then
......
else
.....
end if