摘要: index 索引(普通索引创建) 例 show index from 表 (查看表的索引) 例 create index 索引名 on 表(列名) (创建普通索引) 例 drop 索引名 on 表;(删除普通索引) create table in1( nid int not null auto_in 阅读全文
posted @ 2017-02-15 15:34 200ML 阅读(154) 评论(0) 推荐(0) 编辑
摘要: delimiter \\ create PROCEDURE p1( OUT p_return_code tinyint ) BEGIN DECLARE exit handler for sqlexception BEGIN -- ERROR set p_return_code = 1; rollback; END; DECLARE... 阅读全文
posted @ 2017-02-15 11:44 200ML 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 1 Mysql基本操作 2 3 desc 降序 4 5 例 desc 表 (查看表的描述) 6 例 show create table 表(查看表怎么创建的) 7 例 show index from 表 (查看表的索引) 8 例 set profiling = 1; SQL 执行语句 show pr 阅读全文
posted @ 2017-02-15 11:07 200ML 阅读(178) 评论(0) 推荐(0) 编辑
摘要: prepare 准备 using 使用 deallocate 释放 execute 执行 delimiter $ drop procedure if exists proc $ create procedure proc() begin declare p1 int; set p1 = 11; se 阅读全文
posted @ 2017-02-15 10:05 200ML 阅读(753) 评论(0) 推荐(0) 编辑