B4J Question How to get the the number of rows affected by the sql command

Jeffrey Cameron

Well-Known Member
Licensed User
Longtime User
Additionally, if you wish to find out before you execute the command, you can always use "SELECT COUNT(*)" to get a row count based on your WHERE clause, e.g.
B4X:
Dim changes as int =SQL1.ExecQuerySingleResult("SELECT COUNT(*) FROM [myTable] " & myWhereClauseString)
 
Upvote 0
Top