one-to-check-func.sql 185 B

123456789101112
  1. DELIMITER //
  2. CREATE FUNCTION OneToCheck ( val CHAR(1) )
  3. RETURNS VARCHAR(1)
  4. BEGIN
  5. DECLARE ret VARCHAR(1);
  6. set ret = IF(val = '1', '√', '');
  7. RETURN ret;
  8. END; //
  9. DELIMITER ;