How to Create MySQL Store Procedure in Navicat

Example:

BEGIN
SELECT * FROM CITY WHERE CITY_NME=NAME;
END

Save Store Procedure with TEST name

*****
In Paramter Textbox fill with NAME CHAR(20)
click run an entry "BATAM" or what ever CITY name

the query should be display with city fill

****************
now how to call within VFP
****************

Here an example:

MYSTS = "CALL TEST('BATAM')"
SQLEXEC(1, MYSTS, "MYCURSOR")

SELECT MYCURSOR
BROWSE

Comments

Popular posts from this blog

(VFP) - Running Visual FoxPro on Linux

(VFP) - How to put calendar on your vfp application

(VFP) - How To Run Exe File and include them to your Project