
VB中使用sql语言查询过程中如何在select语句中使用变量
2个回答
展开全部
直接用&符号连接你的文本框就行了
select*from
温度记录表
where
时间
between
Format('"&
text.text
&"','yyyy-m-dd')
and
Format('2009-1-10','yyyy-m-dd')
把text.text改成你的文本框
select*from
温度记录表
where
时间
between
Format('"&
text.text
&"','yyyy-m-dd')
and
Format('2009-1-10','yyyy-m-dd')
把text.text改成你的文本框
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询