Hello:
Someone has a simple example to run a stored procedure/function of Mysql ?
Regards
[SELECT * FROM CLIENTS WHERE State(CLIENTS.ADDRESS,"%WYOMING%")]
CREATE DEFINER = 'root'@'localhost' FUNCTION `State`(cAddress TEXT,cState TEXT)
RETURNS tinyint(1)
NOT DETERMINISTIC
CONTAINS SQL
SQL SECURITY DEFINER
COMMENT ''
BEGIN
RETURN cAdress LIKE cState;
END;
PD:
#xDefine Carpe_diem_quam_minimum_credula_postero "Aprovecha el día, no confíes en mañana"
create Procedure Sp_Item(IN name varchar(25))//Here name is parameter
Begin
select * from Item where Item.name=name;
end;
CALL Sp_Item('Computer');
CREATE FUNCTION `sf_hola`() RETURNS char(50)
RETURN('Hola !')
CALL sf_hola('Armandito');
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 85 guests