'[SQL SERVER中]
1
rs.open "select * from class where [姓名]='刘浩'",cn,1,3
2
rs.open "select * from class where [姓名] like '刘%'",cn,1,3
3
rs.open "select * from class where ([姓名] like '刘%') AND ([姓别]= '女'",cn,1,3'以上是各查询语句
'接下来是将查询结果显示在list中dim i as integer,str as string
str=""
while not rs.eof
for i=0 to rs.fields.count-1
str=str & rs(i).value & " "
next
str=str & vbcrlf
wend
list1.additem str'注:以上代码未经测试。
1
rs.open "select * from class where [姓名]='刘浩'",cn,1,3
2
rs.open "select * from class where [姓名] like '刘%'",cn,1,3
3
rs.open "select * from class where ([姓名] like '刘%') AND ([姓别]= '女'",cn,1,3'以上是各查询语句
'接下来是将查询结果显示在list中dim i as integer,str as string
str=""
while not rs.eof
for i=0 to rs.fields.count-1
str=str & rs(i).value & " "
next
str=str & vbcrlf
wend
list1.additem str'注:以上代码未经测试。
解决方案 »
- 急!急求解决:spreedsheet中单元格数据的自动换行问题
- 利用管道技术获取DOS程序输出字符内容!但是当获取屏幕字符时windows GUI主程序出现假死
- 关于应用程序的路径
- 请问各位高手如何更好的利用这些需要注册的控件?
- 关于toolbar的表示!!!
- 再问关于调用.chm文档
- 我有一个关于数据库设计和汇总的难题,请各位给出出主意,分不够我再加!
- 问一个"wsock32.dll"的问题!
- 为什么我的浏览器在这里乱码?...我是泰山.啊...呱呱
- 数据库问题,急着用!!!!!!!!!!!!!!
- 各位,哪有中文版的msdn下载?高分奉上,急ing!
- 如何给ACCESS数据库添加PASSWORD?
我用的是DAO
如果要用ADO
那又该怎么弄呀