zoukankan      html  css  js  c++  java
  • MYSQL第二课

    创建数据库:
    输入:CREATE DATABASE itcase;
    计算机输出:
    Query OK, 1 row affected
    查看数据库:
    输入:SHOW DATABASES;
    计算机输出:
    +--------------------+
    | Database           |
    +--------------------+
    | information_schema |
    | itcast             |
    | mysql              |
    | performance_schema |
    | test               |
    +--------------------+
    5 rows in set
    查看创建数据库的方式:     
    输入:SHOW CREATE DATABASE itcast;
    计算机输出:
    +----------+----------------------------------------------------------------+
    | Database | Create Database                                                |
    +----------+----------------------------------------------------------------+
    | itcast   | CREATE DATABASE `itcast` /*!40100 DEFAULT CHARACTER SET gbk */ |
    +----------+----------------------------------------------------------------+
    1 row in set
    修改后的数据库:
     输入:ALTER DATABASE itcast DEFAULT CHARACTER SET utf8;
    计算机输出:
    Query OK, 1 row affectedSHOW CREATE DATABASE itcast;
    +----------+-----------------------------------------------------------------+
    | Database | Create Database                                                 |
    +----------+-----------------------------------------------------------------+
    | itcast   | CREATE DATABASE `itcast` /*!40100 DEFAULT CHARACTER SET utf8 */ |
    +----------+-----------------------------------------------------------------+
    1 row in set
    删除数据库:
    输入:DROP DATABASE itcast;
    计算机输出:
    Query OK, 0 rows affected
     
    查看数据库:
     输入:SHOW DATABASES;
    计算机输出:
    +--------------------+
    | Database           |
    +--------------------+
    | information_schema |
    | mysql              |
    | performance_schema |
    | test               |
    +--------------------+
    4 rows in set
  • 相关阅读:
    bzoj2819: Nim
    bzoj4864: [BeiJing 2017 Wc]神秘物质
    【转】 随机梯度下降(Stochastic gradient descent)和 批量梯度下降(Batch gradient descent )的公式对比、实现对比
    【转】梯度下降算法原理
    梯度下降算法的一点认识(Ng第一课)
    快速理解webStroage
    Css选择器实例
    Canvas实例
    HTML5中的Canvas
    骰子效果实例
  • 原文地址:https://www.cnblogs.com/alannever/p/14135480.html
Copyright © 2011-2022 走看看