resultSet使用参考:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-data-resultset-V5\#%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8EcolumnCount代表的是有多少列即有多少个字段,没有指定即查询全部列,row代表的是行数即有多少条数据。做如下修改:hilog.info(0x0000, 'testTag', '%{public}s', "get count is :" + resultSet.rowCount)
resultSet使用参考:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-data-resultset-V5\#%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E
columnCount代表的是有多少列即有多少个字段,没有指定即查询全部列,row代表的是行数即有多少条数据。
做如下修改: