Skip to Content
Aug 14, 2014 at 07:24 PM

How to get a query row count


Hi there,

I'm trying to get the query row count from the rs array of the following xsjs code:

var conn = $.db.getConnection();
var pstmt = conn.prepareStatement( "select * from DUMMY" );
var rs = pstmt.executeQuery();

Is there a property or method to call and get the row count? Something like rs.length or rs.size.

Thanks a lot!

Alejandro Fonseca.