在mysql里面输入
select sc.sno, decode(sign(score-60),-1,'fail','pass') as mark from sc;
系统提示error1582incorrect paramemer count in the call to native function decode
decode(condition,1,a,2,b,3,c,d) 你的sign(score-60)应该是一个条件 当这个条件的对应值是-1的时候返回fail 之后你是另外一个在返回pass的判定条件没加。