How to list of all the tables defined for the database when using active record?

后端 未结 5 2195
时光说笑
时光说笑 2020-12-02 05:14

How do I get a list of all the tables defined for the database when using active record?

5条回答
  •  青春惊慌失措
    2020-12-02 05:46

    Don't know about active record, but here's a simple query:

    select table_name from INFORMATION_SCHEMA.Tables where TABLE_TYPE = 'BASE TABLE'

提交回复
热议问题