旧调新曲——sql查询的问题 sql="select number,name,sex from student where" & Text1.Text 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 cnCnn为:数据库Rs为 : 表 SQL= "select number,name,sex from student where number>10 and sex='男' and age>20"Set Rs = New ADODB.RecordsetRs.CursorLocation = adUseClientRs.Open SQL, cnCnn, adOpenKeyset, adLockOptimistic 要注意的是 要用 空格 分开sql="select number,name,sex from student where " & Text1.Text 要么自己清楚数据类型的,就自己加上去引号如果,数据库表结构不清楚或者,这个表的字段太多了,那么就用field的type属性,判断应不应该加引号 恩嗯嗯[email protected] 如何屏蔽vb6中webbroser里面弹出的alert代码的javascript窗口啊? 请教dbcombo 高分求解ole处理word问题,在线等,马上结帖。 请教关于vsflexgrid单元格合并的问题 一个测试软件!!!高手请进 有关大学计算机专业的问题 ms flexgrid问题 如何列出已打开的端口? 怎么我的报表没有内容 :( 郁闷... 如何调用树状的目录选择对话框??? 有一个问题,大家看一下 怎么在VB中放FLASH?????
Rs为 : 表
SQL= "select number,name,sex from student where number>10 and sex='男' and age>20"Set Rs = New ADODB.Recordset
Rs.CursorLocation = adUseClient
Rs.Open SQL, cnCnn, adOpenKeyset, adLockOptimistic
sql="select number,name,sex from student where " & Text1.Text
如果,数据库表结构不清楚或者,这个表的字段太多了,那么就用field的type属性,判断应不应该加引号
嗯
嗯
[email protected]