Community discussion forum

MYSQL6 USER DEFINED FUNCTION

Tags: mysql India
  • 1 year ago

    Hai Friends

    how to write tabel data retreval usder defined functions in mysql6

    ie an example shown below ie in sql server

     CREATE FUNCTION getname(@ID int)

     RETURNS varchar (50) AS

     BEGIN Declare @V1 Varchar(50)

     select @v1=itemname from subitemmaster where itemid = @id

     return @V1

    END

    This is in SQL Server How this like function write in mysql 6 any one know about this please help me Thanks in advance

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback