| View previous topic :: View next topic |
| Author |
Message |
zion Guest
|
Posted: Sat Feb 14, 2004 5:25 am Post subject: Mysql and Stored Procedure |
|
|
Hello,
Where can I find a simple example about stored procedure?
Thanks
|
|
| Back to top |
|
 |
Brian Hollister Guest
|
|
| Back to top |
|
 |
George Christoforakis Guest
|
Posted: Mon Feb 16, 2004 2:58 pm Post subject: Re: Mysql and Stored Procedure |
|
|
Search google. Bare in mind that sp for mysql is supported in v5 only.
George Christoforakis
"zion" <ziprisz (AT) bezeqint (DOT) net> wrote
| Quote: | Hello,
Where can I find a simple example about stored procedure?
Thanks
|
|
|
| Back to top |
|
 |
sszelei Guest
|
Posted: Mon Feb 16, 2004 4:13 pm Post subject: Re: Mysql and Stored Procedure |
|
|
"zion" <ziprisz (AT) bezeqint (DOT) net> wrote
| Quote: | Hello,
Where can I find a simple example about stored procedure?
Thanks
|
There are simple examples in the mysql doc under section 18.
goto mysql.org and select the Document tab
Here is a simple example for you
Delimiter |
Create Procedure sp_mypros (inParam1 char(20), inParam2 bigint
unsigned, inParam3 Date)
BEGIN
DECLARE lval integer;
Select col1 into lval from tbl1 where some_id = inParam2;
insert into tbl2 set col1=inParam1, col2=inParam3, col3=lval where
row_id = 6;
END|
|
|
| Back to top |
|
 |
|