11智能在线
新记
vb中使用sql语句查询时 条件可以用变量么
例如 我用个语句select * from 表1 where 名字叫=' ??` 这里的问号条件可以想办法用程序里设置的变量代替么??比如设置个dim a as string 用a来代替
举报该文章
相关建议 2010-02-26
Dim tj As String
Dim strSql As String
tj = "å¡æ´ä¿®æ¯"
strSql = "Select * from 表1 where ååå«='" & tj & "'"
温馨提示:内容为网友见解,仅供参考
当前网址:
https://11.t2y.org/zz/f8ms44v82.html
其他看法
无其他回答
相似回答
大家正在搜
相关问题
vb6.0 sql语句使用变量为条件查询时候报错
VB中使用sql语言查询过程中如何在select语句中使用变...
请教VB sql 查询时 where后面更的事变量条件怎么写...
VB中使用SQL语句,可以写个函数用于不确定查询多个条件时使...
VB中使用sql语言查询过程中如何在select语句中使用变...
VB如何在SQL的查询中使用变量?
vb sql语句中列名能不能用变量
vb中使用SQL语句怎样将查询同一条件的数据总和赋值给变量并...