加入收藏 | 设为首页 | 会员中心 | 我要投稿 聊城站长网 (https://www.0635zz.com/)- 智能语音交互、行业智能、AI应用、云计算、5G!
当前位置: 首页 > 站长学院 > MySql教程 > 正文

MySQL辅助使用的主要两个方面

发布时间:2023-08-22 15:22:21 所属栏目:MySql教程 来源:
导读:下文内容主要给大家带来MySQL帮助使用的主要两个方面,这里所讲到的知识,与书籍略有不同,都是技术人员在与用户接触过程中,总结出来的,具有一定的经验分享价值,希望给广大读者带来帮助。

1 按层次查找帮助:
下文内容主要给大家带来MySQL帮助使用的主要两个方面,这里所讲到的知识,与书籍略有不同,都是技术人员在与用户接触过程中,总结出来的,具有一定的经验分享价值,希望给广大读者带来帮助。
 
1 按层次查找帮助:?|help + 类别名称
 
mysql> ? contents;                #有哪些分类
 
You asked for help about help category: "Contents"
 
For more information, type 'help <item>', where <item> is one of the following
 
categories:
 
   Account Management
 
   Administration
 
   Compound Statements
 
   Data Definition
 
   Data Manipulation
 
   Data Types
 
   Functions
 
   Functions and Modifiers for Use with GROUP BY
 
   Geographic Features
 
   Help Metadata
 
MySQL帮助使用的主要两个方面
 
mysql> ? data types                #查看数据有哪些类型
 
You asked for help about help category: "Data Types"
 
For more information, type 'help <item>', where <item> is one of the following
 
topics:
 
   AUTO_INCREMENT
 
   BIGINT
 
   BINARY
 
   BIT
 
   BLOB
 
   BLOB DATA TYPE
 
   BOOLEAN
 
   CHAR
 
   CHAR BYTE
 
   DATE
 
   DATETIME
 
   DEC
 
   DECIMAL
 
mysql> help int;                    #关于数据类型的说明
 
Name: 'INT'
 
Description:
 
INT[(M)] [UNSIGNED] [ZEROFILL]
 
A normal-size integer. The signed range is -2147483648 to 2147483647.
 
The unsigned range is 0 to 4294967295.
 
2 快速查阅帮助
 
mysql> ? create database;
 
Name: 'CREATE DATABASE'
 
Description:
 
Syntax:
 
CREATE {DATABASE | SCHEMA} [IF NOT EXISTS] db_name
 
    [create_specification] ...
 
create_specification:
 
    [DEFAULT] CHARACTER SET [=] charset_name
 
  | [DEFAULT] COLLATE [=] collation_name
 
CREATE DATABASE creates a database with the given name. To use this
 
statement, you need the CREATE privilege for the database. CREATE
 
SCHEMA is a synonym for CREATE DATABASE.
 
......
 
mysql> help create table;
 
Name: 'CREATE TABLE'
 
Description:
 
Syntax:
 
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] tbl_name
 
    (create_definition,...)
 
    [table_options]
 
    [partition_options]
 
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] tbl_name
 
    [(create_definition,...)]
 
    [table_options]
 
    [partition_options]
 
    select_statement
 
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] tbl_name
 
    { LIKE old_tbl_name | (LIKE old_tbl_name) }
 
......
 

(编辑:聊城站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章