DELIMITER $$
CREATE PROCEDURE `Insert1`(IN NAME VARCHAR(100),IN valuees VARCHAR(100))
BEGIN
SET @r = CONCAT('Insert into', NAME,'(name)','VALUES',valuees);
PREPARE smpt FROM @r;
EXECUTE smpt;
DEALLOCATE PREPARE smpt;
END$$
DELIMITER ;
it is successfully compiling... but when i execute gives me problem...
**CALL Insert1('rishi','duyuu')**
Error Code : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'VALUESduyuu' at line 1