zoukankan      html  css  js  c++  java
  • mysql使用笔记(网易Mysql实用手册)---1

    1帮助使用

    1.1按层次查看帮助

      1 当不知道帮助可提供什么时,可通过MySQL内置帮助文档,一层层往下看。

      命令:

     mysql> ? contents

      ? 等效help,该文档涵盖了数据库操作的大部分主题,每个大类又包括更小粒度的类,类最后有具体的topic组成。

      2 查询结果:

    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
       Language Structure
       Plugins
       Procedures
       Storage Engines
       Table Maintenance
       Transactions
       User-Defined Functions
       Utility

      3 查询下一层

    mysql> ? Functions
    You asked for help about help category: "Functions"
    For more information, type 'help <item>', where <item> is one of the following
    categories:
       Bit Functions
       Comparison operators
       Control flow functions
       Date and Time Functions
       Encryption Functions
       Information Functions
       Logical operators
       Miscellaneous Functions
       Numeric Functions
       String Functions

    1.2快速查看帮助

      使用中,需要快速查阅某项语法时,使用关键字进行快速查询。如查询show命令能查看什么,使用如下命令:

    mysql> ? 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 {BINARY | MASTER} LOGS
    SHOW BINLOG EVENTS [IN 'log_name'] [FROM pos] [LIMIT [offset,] row_count]
    SHOW CHARACTER SET [like_or_where]
    SHOW COLLATION [like_or_where]
    SHOW [FULL] COLUMNS FROM tbl_name [FROM db_name] [like_or_where]
    SHOW CREATE DATABASE db_name
    SHOW CREATE EVENT event_name
    SHOW CREATE FUNCTION func_name
    SHOW CREATE PROCEDURE proc_name

      类似,可查询其他语法如:

    mysql> ? create table
  • 相关阅读:
    IoC 中 car 对象的配置如下,现在要添加 user 对象,并且将 car 注入到 user 中,正确的配置是?
    说说 IoC 中的继承和 Java 继承的区别
    bean 的 scope 有几种类型?请详细列举。
    简单谈谈 IoC 容器的原理
    谈谈你对 Spring IoC 和 DI 的理解,它们有什么区别?
    day13-14 内置函数
    day12 生成器(重要)
    day11 闭包和迭代器
    day10 函数进阶
    day09 函数
  • 原文地址:https://www.cnblogs.com/cslj2013/p/8515945.html
Copyright © 2011-2022 走看看