DELIMITER $$;
DROP PROCEDURE IF EXISTS `ghrnjs`.`ccgc`$$
CREATE PROCEDURE `ghrnjs`.`ccgc` (scname char(20),pdzd char(4))
BEGIN
declare  a char(20);
declare pd char(4);
set a=scname;
set pd=pdzd;
case pd
when 1 then 
select * from bbstt where scuname=a;
end case;
END$$
DELIMITER ;$$
大虾们看一下那快错了 
我用的是PHPNOW 
另外一个人用的是XAMPP环境..但是直接在数据库里头执行也一样...??? 谁知道跟环境有关系吗??? 
错误是... SQL code
错误代码: 1267
Illegal mix of collations (gb2312_chinese_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation '='
(耗费 0 ms)