2016年2月27日
php
mysql 聚合函数 mysql 提供的系统实现特定功能的函数
mysql 中的索引
create table student(
id int(6) auto_increment primary key,
stuNum
stuName
stuAge
stuSex
stuTel,
key 索引名称( 字段)
)
create table users(
id int(6) auto_increment primary key,
name varchar(20),
pwd varchar(20),
key dt (name) ,
key dp (pwd)
)
对已经有的表添加
alter table 表名称 add index 索引名称(字段1)
alter table student add index ts (stuNum);
alter table student add index ts1 (stuName);mysql 外键
Last updated