谁能帮助我解释一下这段代码的意思???谢谢
dimstrsqlasstringdimstrTableNameasstringstrTableName="mmsch"strsql="select*frombokewh...
dim strsql as string
dim strTableName as string
strTableName="mmsch"
strsql="select * from boke where " & strTableName
dim rs as new adodb.recordset
rs.open strsql,currentproject.connection,1,1 展开
dim strTableName as string
strTableName="mmsch"
strsql="select * from boke where " & strTableName
dim rs as new adodb.recordset
rs.open strsql,currentproject.connection,1,1 展开
2个回答
展开全部
dim strsql as string(声明strsql为字符串类型)
dim strTableName as string(声明strTableName为字符串类型)
strTableName="mmsch"(把"mmsch"双引号里面的该字符串赋给strTableName)
strsql="select * from boke where " & strTableName(查询数据库表boke的数据跟strTableName合并的值赋给strsql)
dim rs as new adodb.recordset(声明数据源记录集)
rs.open strsql,currentproject.connection,1,1 (打开数据库连接)
dim strTableName as string(声明strTableName为字符串类型)
strTableName="mmsch"(把"mmsch"双引号里面的该字符串赋给strTableName)
strsql="select * from boke where " & strTableName(查询数据库表boke的数据跟strTableName合并的值赋给strsql)
dim rs as new adodb.recordset(声明数据源记录集)
rs.open strsql,currentproject.connection,1,1 (打开数据库连接)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询