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());
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());