Collections:
Getting Help Information from the Server in MySQL
How To Get Help Information from the Server in MySQL?
✍: FYIcenter.com
While you are at the "mysql>" prompt, you can get help information from the server by using the "HELP" command. The tutorial exercise below shows sevearal examples:
>cd \mysql\bin
>mysql -u root
mysql> HELP;
...
List of all MySQL commands:
Note that all text commands must be end with ';'
? (\?) Synonym for `help'.
clear (\c) Clear command.
connect (\r) Reconnect to the server.
...
mysql> HELP SHOW;
Name: 'SHOW'
Description:
SHOW has many forms that provide information about
databases, tables, columns, or status information about
the server. This section describes those following:
SHOW CREATE DATABASE db_name
SHOW CREATE FUNCTION funcname
SHOW CREATE PROCEDURE procname
SHOW CREATE TABLE tbl_name
SHOW DATABASES [LIKE 'pattern']
SHOW ENGINE engine_name {LOGS | STATUS }
...
mysql> HELP CREATE TABLE;
Name: 'CREATE TABLE'
Description:
Syntax:
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] tbl_name
(create_definition,...)
[table_option ...]
...
⇒ Running "mysql" Commands from a Batch File in MySQL
⇐ Non-Standard SQL Commands in MySQL
2018-02-08, 2323🔥, 0💬
Popular Posts:
What Privilege Is Needed for a User to Delete Rows from Tables in Another Schema in Oracle? For a us...
What are DDL (Data Definition Language) statements for tables in SQL Server? DDL (Data Definition La...
How To Provide Default Values to Function Parameters in SQL Server Transact-SQL? If you add a parame...
How to connect SQL Server Management Studio Express to SQL Server 2005 Express in SQL Server? Once y...
What Are Date and Time Functions in MySQL? MySQL offers a number of functions for date and time valu...