Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello am getting the above error when i import my mysql database from within phpmyadmin. Am using wampserver version 2.0i. Below is the block of code affected.

SQL
SQL query: Documentation

CREATE DEFINER = `root`@`localhost` FUNCTION `FindUnitName` (
Code INT
) RETURNS varchar( 45 ) CHARSET utf8 BEGIN DECLARE NAME VARCHAR( 45 ) ;

SELECT UnitName
INTO NAME
FROM units
WHERE UnitID = Code;

RETURN NAME;

END $$
Posted

1 solution

Have a look at the links here[^]

here[^]

You could try
SQL
RETURNS varchar( 45 ) CHARSET utf8 DETERMINISTIC BEGIN DECLARE NAME VARCHAR( 45 ) ;
and see if that works, but I would advise checking the links above first
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900