摘要: I have only recently started working heavily with stored procedures and functions in MySQL. After years in the Oracle world with advanced stored procedures, functions and packages, I’ve had to come to grips with the shortcomings of MySQL. One of those is recursive functions. MySQL allows recursive s 阅读全文
posted @ 2011-06-14 14:34 sunss 阅读(1569) 评论(0) 推荐(0) 编辑
摘要: 1 drop table if exists employee; 2 3 create table employee 4 ( 5 emp_id smallint unsigned not null auto_increment primary key, 6 name varchar(32) not null, 7 boss_id smallint unsigned null, 8 key boss_id_idx(boss_id) 9 )engine = innodb; 10 11 12 insert into employee (name, boss_id) values 13 ('f 阅读全文
posted @ 2011-06-14 14:32 sunss 阅读(6436) 评论(0) 推荐(0) 编辑