随笔分类 -  MYSQL

摘要:1.联表查询 select * from zongyi zongyiitem where zongyi.id=zongyiitem.id 2.联表删除 delete from zongyi ,zongyiitem where zongyi.id=zongyiitem.zongyiid where z 阅读全文
posted @ 2016-10-17 09:17 Docter 阅读(138) 评论(0) 推荐(0)
摘要:1.创建存储过程: create procedure show(in id int) begin select * from sc where xuehao=id; end 2.使用存储过程: call show(10) 3.复杂操作: drop procedure show; //删除存储过程; 阅读全文
posted @ 2016-07-07 20:27 Docter 阅读(114) 评论(0) 推荐(0)