我用的是access数据库,我是想得到数据库中表的名称,不是字段名。
读取access中所有表
set rsSchema=conn.openSchema(20)
rsSchema.movefirst
Do Until rsSchema.EOF
if rsSchema("TABLE_TYPE")="TABLE" then
response.write rsSchema("TABLE_NAME")
end if
rsSchema.movenext
Loop
~~~~~~~~~~~~~~~~~~~~~~~~
判断表是否存在
rs.open "select * from sysobjects where name=表名",conn,1,1
if rs.eof then
没有该表
else
可以操作该表
end if