Answers for "mysql get all table names"

SQL
2

mysql find tables with name

SELECT table_name 
FROM information_schema.tables 
WHERE table_type = 'base table' AND table_name like '%YOUR TABLE NAME%';
Posted by: Guest on May-28-2020
3

mysql get column names from table

SELECT `COLUMN_NAME` 
FROM `INFORMATION_SCHEMA`.`COLUMNS` 
WHERE `TABLE_SCHEMA`='yourdatabasename' 
    AND `TABLE_NAME`='yourtablename';
Posted by: Guest on December-18-2020
20

mysql show all tables

show tables;
Posted by: Guest on March-19-2020
0

mysql select table names

SELECT *
FROM information_schema.tables
WHERE table_type='BASE TABLE'
AND table_schema='<insert_your_database_name_here>'
Posted by: Guest on December-29-2021

Code answers related to "mysql get all table names"

Code answers related to "SQL"

Browse Popular Code Answers by Language