字段加上表名:select `fname`,`lname` from `employee` where `employee`.`depart` = tmp;
很简单啊,存储过程没有返回值,你应该使用自定义函数