您当前的位置: 首页 >  sql

txwtech

暂无认证

  • 2浏览

    0关注

    813博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

vc2015如何在SQL中按时间段查询数据vc++

txwtech 发布时间:2019-01-18 21:51:02 ,浏览量:2

如何在SQL中按时间段查询数据

 

sql server:

select * from 表 where 发生日期>'2019/1/17' and 发生日期#2019/1/17# and 发生日期Requery(0); m_Grid.DeleteAllItems(); int i = 0; while (!m_Ado.m_pRecordset->adoEOF) { m_Grid.InsertItem(i, _T("")); m_Grid.SetItemText(i, 0, (_bstr_t)m_Ado.m_pRecordset->GetCollect("ID")); m_Grid.SetItemText(i, 1, (_bstr_t)m_Ado.m_pRecordset->GetCollect("bucket_number")); m_Grid.SetItemText(i, 2, (_bstr_t)m_Ado.m_pRecordset->GetCollect("side")); m_Grid.SetItemText(i, 3, (_bstr_t)m_Ado.m_pRecordset->GetCollect("position")); m_Grid.SetItemText(i, 4, (_bstr_t)m_Ado.m_pRecordset->GetCollect("data")); m_Grid.SetItemText(i, 5, (_bstr_t)m_Ado.m_pRecordset->GetCollect("data_result")); m_Grid.SetItemText(i, 6, (_bstr_t)m_Ado.m_pRecordset->GetCollect("save_time")); m_Ado.m_pRecordset->MoveNext();//将记录集指针移 i++; } m_Ado.CloseRecordset(); m_Ado.CloseConn(); }

 

关注
打赏
1665060526
查看更多评论
立即登录/注册

微信扫码登录

0.1565s