zoukankan      html  css  js  c++  java
  • Mysql---2 DDL DML DQL DCL

    1.DDL   database  definition  language    default  charset utf8  collate utf8_general_ci;

      create  database; create table;  create view

      alter  table; alter 

      drop database; drop table ; drop view      TRUNCATE   删除表内容;

      show databases

    2.DML  database Manipulation  language:

      数据库列字段的数据类型: 

          数值:tinyint 1字节  smallint 2字节  mediumint  3字节    int  4字节  bigint 8字节  float 4字节  double 8字节  decimal  字符串形式的浮点数

          字符串:char 0-255  varchar可变字符串 216-1 0-65535  tinytext  微型二进制文本28-1  text 二进制文本  216-1

          时间日期:date  yyyy-MM-dd     time  HH:mm:ss    datetime:  YYYY-MM-DD HH:mm:ss    timestamp:时间戳  year  年份

          null: NULL

         布尔值:

         列字段属性: Unsigned  无符号整型,不能为负;

          zerofill: int(3)  3   003;

         自增: index +1   自增索引

         非空: Not null    NULL

         默认:设置默认值  default

        id  主键    version 乐观锁   is_delete 伪删除   gmt_createdata    gmt_updatedata 

       DQL   database query language

       DCL   database control  language

  • 相关阅读:
    线性表17 数据结构和算法22
    线性表16:双向链表 数据结构和算法21
    栈和队列 数据结构和算法23
    栈和队列
    栈和队列
    栈和队列
    线性表16:双向链表 数据结构和算法21
    线性表17 数据结构和算法22
    桌面IE图标无法删除及IE劫持到g1476.cn的彻底恢复
    个人所得税率
  • 原文地址:https://www.cnblogs.com/chencn/p/12298966.html
Copyright © 2011-2022 走看看