one-to-check-func.sql 206 B

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