C# 使用Sqlite 如何返回统计行数

Visual 2010 with Sqlite

需要这样Query 数据:

select count(*) from tblOrder where OrderStartTime >= '2013-06-30 00:00:00' and OrderStartTime <= '2013-06-30 23:59:59'

使用SQLiteCommand的reader.Read() 失败。

正确做法:

RowCount=Convert.ToInt32(cmd.ExecuteScalar());

原文地址:https://www.cnblogs.com/mantian/p/3164179.html