B4J Question [RDC] Result Recordset handling

Cableguy

Expert
Licensed User
Longtime User
Hi MySQL gurus!

In the scenario where the recordset is expected to consist on only one (1) Row, is there an easier way to get a specific column value other than cycling the recordset rows??

I mean, is there a way to do something like this?

result.row(0).column.get("MyColumnName")
 

EnriqueGonzalez

Expert
Licensed User
Longtime User
In dbutils (somewhere in the forum you may find it) there is a function that converts a single resultset in a map where the keys are the columns.

The name of the function is executemap.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Why does the obvious always seems to illude me?
 
Upvote 0

Harris

Expert
Licensed User
Longtime User
Why does the obvious always seems to illude me?
Because you are human?!
Don't despair, You are NOT alone.
We members of this community (except bots) are afflicted with the same deficiency - well some of us anyway...
Often it seems that designing code interferes with design logic.
It is a trap purposely set by expert native Java developers.
Note: the preceding statement excludes registered users and owners this product / site.
 
Upvote 0
Top