zoukankan      html  css  js  c++  java
  • mysql基本操作

    1.显示数据库

    mysql> show databases;
    +--------------------+
    | Database           |
    +--------------------+
    | information_schema |
    | mysql              |
    +--------------------+
    2 rows in set (0.00 sec)

    2.选择一个数据库

    mysql> use mysql
    Reading table information for completion of table and column names
    You can turn off this feature to get a quicker startup with -A

    Database changed

    3.查看当前库的所有表

    mysql> show tables;

    4.获取表结构

    mysql> desc mytable1; 

    5.删除库

    mysql>DROP database 库名;

    6.删除表

    mysql>DROP table 表名;




  • 相关阅读:
    重要的环境变量
    常用的转义字符
    常用系统工作命令
    栈 队列 和 双向队列
    时间
    默认值字典
    Counter
    random
    22 内置常用模块01
    super
  • 原文地址:https://www.cnblogs.com/djcsch2001/p/2422036.html
Copyright © 2011-2022 走看看