Re: Stored Procedures from SQL Server

2009-07-07 Thread Peter Brawley
Does anyone have examples on creating stored procedures? There are quite a few in http://www.artfulsoftware.com/mysqlbook/sampler/mysqled1ch20.html PB - ML wrote: I am working on moving a database from SQL Server to MySQL 5. Tables, data, etc I already know. I have some procedures

RE: Stored Procedures Question

2006-10-04 Thread Daniel Woods
You need create your select statement using a variable and the do the prepare statement; Drop Procedure If Exists RankStock; DELIMITER | Create Procedure RankStock(IN TableNameIn CHAR(20),IN ColNameIn CHAR(20)) begin Set @selStmt = Concat(Select ,ColNameIn, from ,TableNameIn, order by

Re: Stored procedures

2006-07-31 Thread Jon
Thanks both Devanada and Peter, your replies helped me resolve it. /Jon On 7/30/06, Peter Brawley [EMAIL PROTECTED] wrote: *I'm trying to make stored procedures use parameters for limit and tables, I guess this is either me using the wrong datatype or it's not possible. I'm having the same

Re: Stored procedures

2006-07-30 Thread Devananda
Jon wrote: Hi list I'm trying to make stored procedures use parameters for limit and tables, I guess this is either me using the wrong datatype or it's not possible. I'm having the same issue with seting the table for the query: CREATE PROCEDURE sp_test1 (IN some_limit int) select * from

Re: Stored procedures

2006-07-30 Thread Peter Brawley
I'm trying to make stored procedures use parameters for limit and tables, I guess this is either me using the wrong datatype or it's not possible. I'm having the same issue with seting the table for the query: SET @sql = CONCAT( 'select * from some_table limit ', some_limit ); PREPARE stmt

RE: Stored procedures

2006-07-26 Thread Burke, Dan
You would perform the prepare within the stored procedure. Dan. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jon Sent: Tuesday, July 25, 2006 10:31 AM To: mysql@lists.mysql.com Subject: Re: Stored procedures But the scope of a prepared statement

Re: Stored procedures

2006-07-25 Thread Visolve DB Team
Hello Jon. Could you tell me the version of MySql ?. You can find the version by excuting the command SELECT version() If the version is below 5, the stored procedure feature would not work . Thanks Visolve DB Team. - Original Message - From: Jon [EMAIL PROTECTED] To:

Re: Stored procedures

2006-07-25 Thread Jon
On 7/25/06, Visolve DB Team [EMAIL PROTECTED] wrote: Hello Jon. Hi there Team :) And thanks for the quick reply Could you tell me the version of MySql ?. You can find the version by excuting the command SELECT version() If the version is below 5, the stored procedure feature would not

RE: Stored procedures

2006-07-25 Thread Burke, Dan
@lists.mysql.com; Sena Subject: Re: Stored procedures On 7/25/06, Visolve DB Team [EMAIL PROTECTED] wrote: Hello Jon. Hi there Team :) And thanks for the quick reply Could you tell me the version of MySql ?. You can find the version by excuting the command SELECT version() If the version is below 5

Re: Stored procedures

2006-07-25 Thread Jon
://dev.mysql.com/doc/refman/5.0/en/sqlps.html Dan. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jon Sent: Tuesday, July 25, 2006 7:44 AM To: Visolve DB Team Cc: mysql@lists.mysql.com; Sena Subject: Re: Stored procedures On 7/25/06, Visolve DB Team [EMAIL

Re: Stored procedures

2006-07-25 Thread Chris White
On Tuesday 25 July 2006 02:10 am, Jon wrote: CREATE PROCEDURE sp_test1 (IN some_limit int) select * from some_table limit some_limit; and CREATE PROCEDURE sp_test2 (IN some_table table) select * from some_table; Well, first off with stored procedures the format is: DELIMITER $$ CREATE

Re: Stored procedures

2006-07-25 Thread Jon Molin
On 7/25/06, Chris White [EMAIL PROTECTED] wrote: On Tuesday 25 July 2006 02:10 am, Jon wrote: CREATE PROCEDURE sp_test1 (IN some_limit int) select * from some_table limit some_limit; and CREATE PROCEDURE sp_test2 (IN some_table table) select * from some_table; Well, first off with

Re: Stored Procedures and DECLARE weirdness

2006-06-09 Thread Paul DuBois
Hello all and thanks again for any responses. I'm hoping this is something really basic I'm not seeing. I have MySQL 5.0.22-log, and I'm having a weird time creating a basic stored procedure. I get this far: mysql CREATE PROCEDURE getRootId (IN company_id INT) - BEGIN - DECLARE

Re: Stored Procedures and DECLARE weirdness

2006-06-09 Thread Chris White
On Friday 09 June 2006 02:31 pm, Paul DuBois wrote: When you use the mysql client, you must redefine the statement delimiter during definition of a stored routine (or trigger or event) that uses compound statement syntax with multiple statements making up the body of the routine. See the

Re: Stored procedures and views

2006-03-24 Thread Martijn Tonies
Chriss, I'm trying to create a flatfile dump from our database which requires some functionality that's not possible with raw sql. Up to now we've been using PHP tied to mySql to do all the work and get the data in the correct format. We would like to switch this functionality over to stored

RE: Stored procedures and views

2006-03-24 Thread Chris Carrier
: Re: Stored procedures and views Chriss, I'm trying to create a flatfile dump from our database which requires some functionality that's not possible with raw sql. Up to now we've been using PHP tied to mySql to do all the work and get the data in the correct format. We would like to switch

Re: Stored procedures and views

2006-03-24 Thread Martijn Tonies
, March 24, 2006 10:26 AM To: mysql@lists.mysql.com Subject: Re: Stored procedures and views Chriss, I'm trying to create a flatfile dump from our database which requires some functionality that's not possible with raw sql. Up to now we've been using PHP tied to mySql to do all the work

RE: Stored procedures and views

2006-03-24 Thread Gordon
data_result END// DELIMITER ; -Original Message- From: Martijn Tonies [mailto:[EMAIL PROTECTED] Sent: Friday, March 24, 2006 1:04 PM To: Chris Carrier; mysql@lists.mysql.com Subject: Re: Stored procedures and views I just mean is it possible to hook a set of stored procedures

Re: Stored procedures using a variable tablename

2005-11-07 Thread Stefano Obliquid
Hello everybody, Rhino answer to Evaluating text as an expression and he solves my problem too. I need a prepared statement to execute dynamic sql. I understand that I cannot pass a tablename as a parameter value, since it's not a value, so I have to prepare my sql separately. I tried this

Re: Stored Procedures and Functions

2005-09-27 Thread Gleb Paharenko
Hello. Have a look here: http://dev.mysql.com/tech-resources/articles/mysql-storedprocedures.html However, it isn't clear for me what originally read data means. Do you store the time of the first access to the data in some table or somewhere else? You might obtain a better answer

Re: Stored procedures MS SQL Server to MySQL

2005-09-26 Thread Jim Seymour
On Sun, Sep 25, 2005 at 03:56:46PM -0500, Peter Brawley wrote: Jim, If you really want to return the result in a variable, declare a user var in the client, declare an OUT var in the SP, have the SP SELECT INTO it, and pass the user var to the SP in the call: SET @x=0; SET GLOBAL

Re: Stored Procedures and Functions

2005-09-26 Thread Peter Brawley
Justin, I don't have any experience with stored procedures and find the Documentation in the MYSQL manual a bit sketchy or maybe I am just miss reading it. Can any one point me to some documentation that will help with fully understanding Stored Procedures? What I am trying to migrate out

Re: Stored procedures MS SQL Server to MySQL

2005-09-25 Thread Peter Brawley
Jim, I have tried numerous variations of the following: CREATE PROCEDURE CountPhoneNumbers () BEGIN DECLARE @count INT SELECT @count = COUNT(*) FROM CUSTOMER WHERE HomePhone IS NOT NULL; END// // was set to be the delimiter for the creation and have tried putting various parts of the query

Re: Stored procedures and multi-queries: bug?

2005-07-14 Thread Paul DuBois
At 21:24 -0600 7/14/05, Warren Young wrote: When you have a stored procedure that returns a result set, it seems that the server returns its results the same way as with a multi-query. As a result, if you don't set the multi-query option when setting up the connection with the C API, the

Re: Stored procedures

2004-02-09 Thread Victoria Reznichenko
Prasad Budim Ram [EMAIL PROTECTED] wrote: Hi, I'm testing stored procedure on MySQL5.0.My question is can I change the definition of a procedure body using ALTER PROCEDURE?(Not the characteristics). I'm not sure if it is implemented! You can't do it with ALTER PROCEDURE. Only DROP

RE: stored procedures in mysql5

2003-06-30 Thread electroteque
PROTECTED] Sent: Monday, June 30, 2003 8:14 AM To: electroteque; [EMAIL PROTECTED] Subject: Re: stored procedures in mysql5 insane you mean extremely fast? or easy to use? i'd like to know what those SPs are good for... -yves -Ursprüngliche Nachricht- Von: electroteque [EMAIL PROTECTED

Re: stored procedures in mysql5

2003-06-29 Thread Jeremy Zawodny
On Sun, Jun 29, 2003 at 08:00:29PM +1000, electroteque wrote: ok i have a bleeding edge server instance on my server apache2/php5/mysql5 running alongside the stable server , is stored procedures actually functioning in it yet ? is this the correct syntax there is no documentation for it yet.

RE: stored procedures in mysql5

2003-06-29 Thread electroteque
thanks this is pretty insane cant wait for its release :D -Original Message- From: Jeremy Zawodny [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 6:07 AM To: electroteque Cc: Mysql Subject: Re: stored procedures in mysql5 On Sun, Jun 29, 2003 at 08:00:29PM +1000, electroteque

Re: stored procedures in mysql5

2003-06-29 Thread nospam
insane you mean extremely fast? or easy to use? i'd like to know what those SPs are good for... -yves -Ursprüngliche Nachricht- Von: electroteque [EMAIL PROTECTED] An: [EMAIL PROTECTED] Gesendet: Montag, 30. Juni 2003 00:09 Betreff: RE: stored procedures in mysql5 thanks

re: Re: Stored Procedures

2002-10-14 Thread Victoria Reznichenko
Matt, Monday, October 14, 2002, 7:14:24 AM, you wrote: MH I believe you'll be waiting until version 4.1.0 for full Stored procedures MH support. Stored procedures will not come in 4.1, they are scheduled around version 5.0 MH At that point I'm not sure what we'll be waiting for. There are a

Re: Stored Procedures

2002-10-13 Thread Gerald R. Jensen
MySQL does not support stored procedures. - Original Message - From: Ian Hagan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, October 13, 2002 7:10 PM Subject: Stored Procedures Hello All List Members, My name is Ian Hagan. I am a database developer specialising in Delphi. I am

Re: Stored Procedures

2002-10-13 Thread Matt Hargraves
I believe you'll be waiting until version 4.1.0 for full Stored procedures support. At that point I'm not sure what we'll be waiting for. There are a few features that will be missing, but they will be the kind of things that financial institutions need, IIRC. Most of us won't care about

Re: stored procedures and triggers

2002-09-05 Thread Curtis Maurand
I have to agree here.If one doesn't know the schema and has to figure out how to locate keys in related tables, then one's not paying too much attention to the constructs of the data set. Lets not forget joins, eh? What network traffic? The list of tables? How much traffic is there in a

Re: stored procedures and triggers

2002-09-03 Thread yvictorovich
That's only if you access it directly from client. What I was talking about is AppServer sitting next to MySQL server. Preferably on the same computer. Agree that for some cascade actions triggers are very useful. But most of the folks just try to push all business logic into sp/triggers. And

Re: stored procedures and triggers

2002-09-02 Thread yvictorovich
I would like to see the triggers/stored procedures/views in MySQL also. And the only estimate I saw somewhere was around version 5.0. But think about this this way: in the complex enterprise-level system you would probably need some kind of application server instead of direct client-db access.

RE: Stored Procedures

2002-07-15 Thread Cal Evans
No. http://www.mysql.com/doc/N/u/Nutshell_4.1_development_release.html * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: root [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 10:06 AM To: [EMAIL PROTECTED] Subject: Stored Procedures dear all,

Re: Stored Procedures

2002-07-15 Thread Egor Egorov
root, Monday, July 15, 2002, 6:05:54 PM, you wrote: r Does Mysql support stored procedures ? No, MySQL doesn't yet support stored procedures. -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net

RE: Stored procedures

2002-06-27 Thread Roma Gupta
MySQL doesn't support stored procedures yet. Roma -Original Message- From: andy thomas [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 8:01 AM To: [EMAIL PROTECTED] Subject: Stored procedures Does anyone know if stored procedures have been implemented in MySQL? Getting into

Re: Stored procedures

2002-06-27 Thread Gerald Jensen
Yes ... we all know that stored procedures have not been implemented in MySQL. Sorry to be so terse, but this is about the umpteenth posting of this same question this week ... doesn't anybody read the list or search the archive before they post stuff? - Original Message - From: andy

RE: Stored procedures

2002-06-27 Thread Roma Gupta
I think you didn't notice. He cannot access Mysql website from UK :) -Original Message- From: Gerald Jensen [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 9:16 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Stored procedures Yes ... we all know that stored

Re: Stored procedures

2002-06-27 Thread andy thomas
On Thu, 27 Jun 2002, Gerald Jensen wrote: Yes ... we all know that stored procedures have not been implemented in MySQL. I thought as much but just wanted rapid confirmation. Sorry to be so terse, but this is about the umpteenth posting of this same question this week ... doesn't anybody

RE: Stored procedures

2002-06-27 Thread Gerald Jensen
I noticed ... but he was somehow able to get on the list to post his message! -Original Message- From: Roma Gupta [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 9:13 AM To: 'Gerald Jensen'; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Stored procedures I think you didn't

Re: Stored Procedures

2002-04-10 Thread Victoria Reznichenko
Yiannis, Wednesday, April 10, 2002, 10:17:03 AM, you wrote: YD i've just started work with MySQL. Does anybody know how can i YD use stored procedures with MySQL? Is this capability supported? MySQL doesn't have stored procedures yet, but it is in our plans to support them, look at:

Re: Stored procedures (2)

2001-09-11 Thread Arnulf Kristiansen
Claudio Cicali wrote: I've got a tour on the web, searching for info and ideas, regarding the subject to implement some sort of stored procedure in mysql (remember Lets approach stored procedure thread ?) This was what I discovered - The Perl stored procedures (myperl project) in not a

Re: Stored procedures (2)

2001-09-10 Thread Dana Powers
- The Perl stored procedures (myperl project) in not a good idea at all, but, even if called poor man's stored procedure, I think that this project don't add, actually, stored procedure in the precise meamning of term. It add only a binding with Perl via UDF. It's a nice (and

Re: Stored Procedures and Triggers

2001-09-03 Thread Jeremy Zawodny
On Mon, Sep 03, 2001 at 04:23:23PM +0800, Kimman Lui wrote: How many types of triggers MySQL have? And what about stored procedures? Zero and Zero, as explained in the docs. If you need them today, I'd suggest looking at PostgreSQL. If you're patient, they'll likely appear in MySQL

Re: Stored Procedures and Triggers

2001-09-03 Thread David Turner
A friend of mine mentioned something about perl stored procedures for MYSQL. Has anyone heard about this? I have searched everywhere and only seen posts related to POSTGRESQL. If they have this for MYSQL it would be really helpful. Thanks, Dave On Mon, Sep 03, 2001 at 01:37:23AM -0700, Jeremy

Re: Stored Procedures and Triggers

2001-09-03 Thread Steve Edberg
At 1:10 PM -0700 9/3/01, David Turner wrote: A friend of mine mentioned something about perl stored procedures for MYSQL. Has anyone heard about this? I have searched everywhere and only seen posts related to POSTGRESQL. If they have this for MYSQL it would be really helpful. That would be

Re: Stored Procedures and Triggers of MySQL

2001-09-03 Thread Alexander Skwar
So sprach »Kimman Lui« am 2001-09-03 um 16:26:33 +0800 : How many types of triggers MySQL have? And what about stored procedures? none and (close to) none. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage:

Re: Stored Procedures and Triggers

2001-09-03 Thread David Turner
Great thanks, I'll check it out. Dave On Mon, Sep 03, 2001 at 01:49:31PM -0700, Steve Edberg wrote: At 1:10 PM -0700 9/3/01, David Turner wrote: A friend of mine mentioned something about perl stored procedures for MYSQL. Has anyone heard about this? I have searched everywhere and only seen

Re: Stored procedures (really sorry for bringing this up)

2001-06-07 Thread Sinisa Milivojevic
John N S Gill writes: The company I work for has been considering moving a key database from MS Access to a proper database. We use linux for a lot of the number crunching we do and I was keen for us to choose MySQL. I happen to think it would be ideal for our applications.

Re: Stored procedures (really sorry for bringing this up)

2001-06-07 Thread Ken Menzel
this helps someone! Ken - Ken Menzel ICQ# 9325188 www.icarz.com [EMAIL PROTECTED] - Original Message - From: Sinisa Milivojevic [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, June 07, 2001 7:54 AM Subject: Re: Stored

RE: Stored procedures in MySQL ?

2001-03-29 Thread Paolo Michetti
I'm interested in stored procedure as well. I only know that SP are available in the INNOBASE engine, but I'm looking for access SP from mysql SQL interface. ciao - Paolo -Original Message- From: Razvan Veina [mailto:[EMAIL PROTECTED]] Sent: venerd 30 marzo 2001 8.39 To: [EMAIL