首先安装MySQL数据库,初学者建议选择图形化客户端. Toad for MySQL.MySQL-Front.Navicat for MySQL.SQLyog. 官方下载链接: Toad for MySQL:http://www.toadworld.com/m/freeware/1469/ MySQL-Front:http://www.mysqlfront.de/ Navicat for MySQL:https://www.navicat.com/en/download/navicat-for-…
MySQL(二) 1.外键及连表 外键 一个特殊的索引,只能是指定内容 CREATE TABLE part1 ( nid INT NOT NULL auto_increment PRIMARY KEY, caption VARCHAR (32) NOT NULL ) CREATE TABLE person1 ( nid INT NOT NULL auto_increment, caption VARCHAR (32) NOT NULL, email VARCHAR (32) NOT NULL,…