How to determine whether there is a table in the database

When querying data, sometimes we need to determine whether the table exists in the current database in multiple databases. The author often uses the following method:

describe table name

// describe 表名
describe tablename

Such as: describe sdk_xxx_xxxase
Insert picture description here
if the table does not exist, it will prompt that the table does not exist, or the return is empty
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_42258975/article/details/111467468