avatar

sql语句
  • SHOW DATABASE –显示当前的数据库

  • CREATE DATABASE XXX –创建数据库

    DEFAULT CHARACTER SET utf8mb4
    DEFAULT COLLATE utf8mb4_unicode_ci;

  • USE XXX;

  • CREATE TABLE IF NOT EXISTS airline( –创建数据表
    code char(3) PRIMARY KEY,
    airlinename varchar(1024)
    );

  • ALTER TABLE S

    ADD FOREIGN KEY (a) REFERENCES E(a),
    ADD FOREIGN KEY (c) REFERENCES  F(c);
Author: Michelle19l
Link: https://gitee.com/michelle19l/michelle19l/2020/04/01/sql语句/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Donate
  • 微信
    微信
  • 支付寶
    支付寶