Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mysql show table structure

DESCRIBE table_name; # To show table structure...
Comment

mysql show tables

mysql -e 'show tables;' database_name
Comment

view table mysql

DESCRIBE table_name; /* List all columns of a database's table*/
Comment

show table info mysql

Copied mysql> DESCRIBE pet;
+---------+-------------+------+-----+---------+-------+
| Field   | Type        | Null | Key | Default | Extra |
+---------+-------------+------+-----+---------+-------+
| name    | varchar(20) | YES  |     | NULL    |       |
| owner   | varchar(20) | YES  |     | NULL    |       |
| species | varchar(20) | YES  |     | NULL    |       |
| sex     | char(1)     | YES  |     | NULL    |       |
| birth   | date        | YES  |     | NULL    |       |
| death   | date        | YES  |     | NULL    |       |
+---------+-------------+------+-----+---------+-------+
Comment

show table mysql

# First, select your database
USE yourDb;

# Then, simply
SHOW TABLES;
Comment

PREVIOUS NEXT
Code Example
Sql :: view table sql 
Sql :: postgres integer to serial 
Sql :: mysql get date from datetime 
Sql :: sql rtrim 
Sql :: sql get duplicates by composite 
Sql :: charindex 
Sql :: GROUP BY With HAVING Clausel 
Sql :: make date with time sql 
Sql :: sql display max value 
Sql :: expo sqlite 
Sql :: sql server delete table 
Sql :: mysql auto increment column 
Sql :: truncate oracle 
Sql :: select from select sql server 
Sql :: ms sql mac 
Sql :: exec procedure pl sql 
Sql :: Upgrading postgresql data from 13 to 14 failed! 
Sql :: not regexp_like in oracle 
Sql :: add clumn to table postgres 
Sql :: select database in mysql 
Sql :: group by clause with join in sql 
Sql :: pgadmin see indexes 
Sql :: select value from previous row in postgresql 
Sql :: POSTGRES INSERT INTO TABLE VALUE FROM OTHER TABLE 
Sql :: mysql fetch all data 
Sql :: 0 
Sql :: mysql show slave status 
Sql :: sql join on a subquery 
Sql :: An error occurred while installing mysql (2.9.1), and Bundler cannot continue 
Sql :: sql composite key 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =