BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Mysql and Stored Procedure

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
zion
Guest





PostPosted: Sat Feb 14, 2004 5:25 am    Post subject: Mysql and Stored Procedure Reply with quote



Hello,

Where can I find a simple example about stored procedure?

Thanks


Back to top
Brian Hollister
Guest





PostPosted: Mon Feb 16, 2004 2:55 pm    Post subject: Re: Mysql and Stored Procedure Reply with quote




"zion" <ziprisz (AT) bezeqint (DOT) net> wrote

Quote:
Hello,

Where can I find a simple example about stored procedure?

Thanks




Google!!!

http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=MySQL+Stored+Procedure



Back to top
George Christoforakis
Guest





PostPosted: Mon Feb 16, 2004 2:58 pm    Post subject: Re: Mysql and Stored Procedure Reply with quote



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





PostPosted: Mon Feb 16, 2004 4:13 pm    Post subject: Re: Mysql and Stored Procedure Reply with quote

"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.