来源:百度知道

功能说明:读取数据库中所有用户自定义的数据表名(不包括系统系统表名)

 

'conn 是ADODB.Connection
'RS   是ADODB.RecordSet
'以上两个变量,只要写个数据库的人都知道

 set rs=conn.OpenSchema(20)
  do until rs.eof
  if ucase(rs("TABLE_TYPE")) ="TABLE" then
msgbox "表:" & rs("TABLE_NAME")
end if
rs.movenext
loop

相关文章:

  • 2022-12-23
  • 2021-05-25
  • 2021-07-11
  • 2022-12-23
  • 2021-08-11
  • 2022-12-23
  • 2021-10-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
  • 2022-12-23
  • 2021-09-01
  • 2021-11-04
  • 2021-07-13
相关资源
相似解决方案