vb中如何写查询语句
s和ss,sover都为stringTmpSource="SELECTl.Send_datetimeas发送时间,l.MsgContentas短信内容"_+"FROMSe...
s 和 ss,sover都为string
TmpSource = "SELECT l.Send_datetime as 发送时间,l.MsgContent as 短信内容" _
+ " FROM SendHistory l WHERE Send_datetime like +" _
+ " '" + s + "%'" And Send_datetime > ss And Send_datetime < sover
现在编译的时候说类型不匹配 是不是like后的换行符引起的错误啊 展开
TmpSource = "SELECT l.Send_datetime as 发送时间,l.MsgContent as 短信内容" _
+ " FROM SendHistory l WHERE Send_datetime like +" _
+ " '" + s + "%'" And Send_datetime > ss And Send_datetime < sover
现在编译的时候说类型不匹配 是不是like后的换行符引起的错误啊 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询