摘要:
触发器,顾名思义,当执行一个sql的时候顺带着执行与他绑定的另一条sql ,相当于设置了个默认执行sql先建个表create table test(id int primary key auto_increment not null,title char(20) not null default '... 阅读全文
posted @ 2015-12-17 12:26
吾辈丶何以为战
阅读(185)
评论(0)
推荐(0)
摘要:
存储函数和存储过程很类似 示例:\d $create function hello(w char(20) charset utf8) 设置输入字符returns char(50) 设置返回字符类型reads sql data 固定写法begin 函数起点 return concat('hello',... 阅读全文
posted @ 2015-12-17 11:24
吾辈丶何以为战
阅读(189)
评论(0)
推荐(0)