Answers for "how to show columns in mysql"

SQL
6

show table columns mysql command line

SHOW COLUMNS from tablename;
Posted by: Guest on April-21-2021
1

mysql show column data types

SELECT DATA_TYPE from INFORMATION_SCHEMA.COLUMNS where
table_schema = ’yourDatabaseName’ and table_name = ’yourTableName’.
Posted by: Guest on September-29-2020
2

get the mysql table columns data type mysql

SHOW COLUMNS FROM mydb.mytable;
Posted by: Guest on April-16-2020
1

MySql get fields of table

SELECT COLUMN_NAME
  FROM INFORMATION_SCHEMA.COLUMNS
  WHERE TABLE_SCHEMA = 'my_database' AND TABLE_NAME = 'my_table';
Posted by: Guest on November-03-2020
2

mysql show table fields

DESCRIBE my_table;
Posted by: Guest on October-25-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language