Posts tagged ‘SQLite count’

费了点时间才搞清楚原来取得记录条数跟mysql有些不同。记录在此以备以后使用:

sqlStmt.text="select count(*) from "+ table.tableName;
sqlStmt.execute();
var totalRecords:Number=sqlStmt.getResult().data[0]["count(*)"];