How to use the mysqli statement in PHP to accurately determine whether a MySQL database exists?
How to determine whether a certain table in the database exists?
What do the two styles provided in the official PHP documentation mean?
Object-oriented style and process-oriented style.
Are these two styles just different in grammar? Or is the code logic written in different ways because it is object-oriented and process-oriented?
SQL statement
show databasescan view all libraries (libraries with permission to access)show tablescan view which tables are in the currently selected database(or
show tables from XXX)Or by accessing the built-in
information_schemalibrary of mysql, thetablestable inside also has table information