Comments
Posted by: Jens Ruena
Date: January 29, 2013 07:41AM

How do I get comments within a function form a database dump into the database?

mysql user -h host < dump.txt

dump.txt
=============


DROP FUNCTION IF EXISTS `foo`;
DELIMITER $$

CREATE DEFINER=`user`@`%` FUNCTION `foo`() RETURNS bigint(1)

BEGIN

SET @var1 = "TEST";
#please keep this comment

return 1;
END$$

DELIMITER ;

Options: ReplyQuote


Subject
Views
Written By
Posted
Comments
2321
January 29, 2013 07:41AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.