Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mysql show all tables

show tables;
Comment

mysql show table structure

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

mysql show table fields

DESCRIBE my_table;
Comment

mysql show all table from database

use database_name;
show tables;
Code language: SQL (Structured Query Language) (sql)
Comment

mysql cli 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

mysql show create table

Copied mysql> SHOW CREATE TABLE tG
*************************** 1. row ***************************
       Table: t
Create Table: CREATE TABLE `t` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `s` char(60) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
Comment

show table mysql

# First, select your database
USE yourDb;

# Then, simply
SHOW TABLES;
Comment

PREVIOUS NEXT
Code Example
Sql :: sqlite show columns 
Sql :: How to insert Arabic characters into SQL database 
Sql :: postgresql must appear in the GROUP BY clause or be used in an aggregate function 
Sql :: to_date postgresql 
Sql :: Cannot truncate a table referenced in a foreign key constraint (`video_clips`.`channel_clips`, CONSTRAINT `clips_fk` FOREIGN KEY (`clip_id`) REFERENCES `video_clips`.`clips` (`id`)) in sql] 
Sql :: sql server 2019 installation 
Sql :: mysql where length greater than 
Sql :: sql find all different values in column 
Sql :: query to find second highest salary 
Sql :: oracle parameter 
Sql :: Selecting duplicates 
Sql :: orderBy sqlalchemy 
Sql :: for select oracle 
Sql :: table structure in sql 
Sql :: identify primary key in oracle table 
Sql :: select the date 30 days less that the todays date sql request 
Sql :: like in postgresql 
Sql :: difference between 2 query results sql server 
Sql :: postgres extract date from timestamp 
Sql :: sql tabelle erstellen 
Sql :: sql select all tables from database change url 
Sql :: mysql update command 
Sql :: php delete database 
Sql :: FIND LOWEST SALARY EARNER IN SQL 
Sql :: postgresql where and 
Sql :: sql server datetime 
Sql :: delete from select postgresql 
Sql :: sql and 
Sql :: sql server datetime vs datetime2 
Sql :: select only distinct values another table 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =