Reformat: Connector/Python and calling stored procedures with backticks

2016-05-07 Thread Magnus Lind Oxlund
r.callproc() method to call stored procedures whose names include backticks. Here is the entire traceback (with minor redactions): Traceback (most recent call last): File "C:\Users\[...]\Bottle\Website\website.py", line 108, in cursor.callproc('`insert_page`', args) Fi

Connector/Python and calling stored procedures with backticks

2016-05-07 Thread Magnus Lind Oxlund
Hi, everyone I'm having trouble using MySQL Connector/Python's cursor.callproc() method to call stored procedures whose names include backticks. Here is the entire traceback (with minor redactions): Traceback (most recent call last): File "C:\Users\[...]\Bottle\Website\websit

Re: Doubt with stored procedures

2013-04-17 Thread Antonio Fernández Pérez
Hi everybody, Firstly thanks for your reply. I'm using MySQL only in one server (I have only one), without replication and without cluster configuration. I have defined the stored procedure as a normal user, not as a root. And the call is make as a normal user also. Occurs with MySQL 5.1.49 on De

Re: Doubt with stored procedures

2013-04-17 Thread hsv
>>>> 2013/04/17 14:16 +0200, Antonio Fernández Pérez >>>> I have a doubt with stored procedures functionality. Is possible that a stored procedure works with all databases form the server? I have created a stored procedure on dataBaseA and also works with dataBaseB. Is tha

Re: Doubt with stored procedures

2013-04-17 Thread Johan De Meersman
- Original Message - > From: "Antonio Fernández Pérez" > Subject: Doubt with stored procedures > > I have a doubt with stored procedures functionality. Is possible that > a stored procedure works with all databases form the server? I have > created a store

Doubt with stored procedures

2013-04-17 Thread Antonio Fernández Pérez
Hi everybody, I have a doubt with stored procedures functionality. Is possible that a stored procedure works with all databases form the server? I have created a stored procedure on dataBaseA and also works with dataBaseB. Is that correct? Independently of the user privileges defined. Thanks

Re: Why do stored procedures limited to Select stmt to 1 OUT parameter?

2011-02-28 Thread mos
At 03:36 PM 2/28/2011, Michael Dykman wrote: One statement will do: SELECT Min(prod_price) , Max(prod_price), Avg(prod_price) INTO pl, ph, pa from products; - michael dykman Michael, Brilliant! Thanks. :-) Mike On Mon, Feb 28, 2011 at 4:30 PM, mos wrote: > I want to have a store

Re: Why do stored procedures limited to Select stmt to 1 OUT parameter?

2011-02-28 Thread Michael Dykman
One statement will do: SELECT Min(prod_price) , Max(prod_price), Avg(prod_price) INTO pl, ph, pa from products; - michael dykman On Mon, Feb 28, 2011 at 4:30 PM, mos wrote: > I want to have a stored procedure that returns 5 columns from a table and do > some calculations on it. But when I tr

Why do stored procedures limited to Select stmt to 1 OUT parameter?

2011-02-28 Thread mos
I want to have a stored procedure that returns 5 columns from a table and do some calculations on it. But when I try it, it complains there is a syntax error on the 2nd "INTO" clause. It appears I can have only 1 INTO clause per SQL statement. That means I have to execute 5 different SQL stateme

RE: [MySQL] Re: Variables in stored procedures

2010-05-01 Thread Ashley M. Kirchner
Huh? That doesn't make a whole lot of sense. If that is the case, can you explain why? Is the stored procedure mechanism that primitive? From: Ted Yu [mailto:yuzhih...@gmail.com] Sent: Saturday, May 01, 2010 7:11 AM To: Ashley M. Kirchner Subject: Re: [MySQL] Re: Variables in s

RE: [MySQL] Re: Variables in stored procedures

2010-04-30 Thread Ashley M. Kirchner
> -Original Message- > From: Shawn Green [mailto:shawn.l.gr...@oracle.com] > Sent: Friday, April 30, 2010 9:49 PM > To: Ashley M. Kirchner > Cc: mysql@lists.mysql.com > Subject: [MySQL] Re: Variables in stored procedures > > Two options > > 1) u

Re: Variables in stored procedures

2010-04-30 Thread Shawn Green
Ashley M. Kirchner wrote: I have the following procedure: -- CREATE PROCEDURE `geodistance`(IN userid int, IN maxdist int) begin declare userlng double; declare userlat double; declare lng1 float; declare lng2 float; declare lat1 float; declare lat2 float; select ln

Variables in stored procedures

2010-04-30 Thread Ashley M. Kirchner
I have the following procedure: -- CREATE PROCEDURE `geodistance`(IN userid int, IN maxdist int) begin declare userlng double; declare userlat double; declare lng1 float; declare lng2 float; declare lat1 float; declare lat2 float; select lng, lat into userlng, userla

Re: When to use Stored Procedures

2010-04-18 Thread Shawn Green
ments, yet. http://dev.mysql.com/doc/refman/5.1/en/stored-program-restrictions.html SQL prepared statements (PREPARE, EXECUTE, DEALLOCATE PREPARE) can be used in stored procedures, but not stored functions or triggers. Hope that helps! -- Shawn Green MySQL Principle Technical Suppor

Re: When to use Stored Procedures

2010-04-17 Thread Johan De Meersman
as a totally off-topc question, wouldn't something along the lines of LIMIT COUNT(*)/2, 1 do that trick? On 4/15/10, Rhino wrote: > > > Shawn Green wrote: >> Tompkins Neil wrote: >>> Hi, >>> >>> I've used mainly of the older versions of MySQL. However am looking >>> to port >>> a application acr

Re: When to use Stored Procedures

2010-04-15 Thread Rhino
Shawn Green wrote: Tompkins Neil wrote: Hi, I've used mainly of the older versions of MySQL. However am looking to port a application across to MySQL 5. My question is when would one decide to use a Stored Procedure over a query written at the application level ? The decision to encap

Re: When to use Stored Procedures

2010-04-15 Thread Shawn Green
Tompkins Neil wrote: Hi, I've used mainly of the older versions of MySQL. However am looking to port a application across to MySQL 5. My question is when would one decide to use a Stored Procedure over a query written at the application level ? The decision to encapsulate a particular proce

Re: How to watch stored procedures

2010-04-09 Thread Prabhat Kumar
In phpmyqdmin in SQL window type : show create procedure procedureName; eg; SHOW CREATE PROCEDURE circle_area; in SQL Check more on : http://adminlinux.blogspot.com/2009/12/mysql-tips-verify-database-objects.html Thanks On Fri, Apr 9, 2010 at 1:00 PM, alba.albetti wrote: > Since I work on My

How to watch stored procedures

2010-04-09 Thread alba.albetti
Since I work on MySQL by using phpMyAdmin, is there anyone saying to me if and how it's possibile to see the code of a stored procedure that I've created? For example on Oracle I use sql-developer but with phpMyAdmin is it possible to see the whole code of a procedure or of a trigger after creat

When to use Stored Procedures

2010-03-30 Thread Tompkins Neil
Hi, I've used mainly of the older versions of MySQL. However am looking to port a application across to MySQL 5. My question is when would one decide to use a Stored Procedure over a query written at the application level ? Cheers Neil

Re: Allowing triggers & stored procedures on MySQL

2010-03-06 Thread Jesper Wisborg Krogh
On 07/03/2010, at 3:30 AM, Brent Clark wrote: Hi everyone, Currently we have a policy that prohibit our customers from creating stored procedures and triggers on their DB's which I imagine must be driving them up the walls. It's like having a car with a boot but you are not a

Allowing triggers & stored procedures on MySQL

2010-03-06 Thread Brent Clark
Hi everyone, Currently we have a policy that prohibit our customers from creating stored procedures and triggers on their DB's which I imagine must be driving them up the walls. It's like having a car with a boot but you are not able to use it. :) Are there any reasons why we wou

Re: tuning stored procedures

2010-01-17 Thread Joerg Bruehe
Ted, all, Ted Yu wrote: > Hi, > We currently use SQL statements embedded in Java code. I believe stored > procedures would give us better performance. In general, this is likely, because you would (at least) save on the number of statements and the amount of data communicated bet

tuning stored procedures

2010-01-15 Thread Ted Yu
Hi, We currently use SQL statements embedded in Java code. I believe stored procedures would give us better performance. I found http://lists.mysql.com/maxdb/16680 which is very old. Can someone share stored procedures tuning practices ? Thanks

Edit Stored Procedures

2009-12-01 Thread Keith Clark
I'm trying to edit one of my stored procedures using MySQL Query Browser and this is what I get back as a listing when I select Edit All Procedures: DROP PROCEDURE IF EXISTS `kwbo4418_2008bookworminventory`.`UpdateStock` $$ /*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='&#x

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 procedu

Stored Procedures from SQL Server

2009-07-07 Thread ML
I am working on moving a database from SQL Server to MySQL 5. Tables, data, etc I already know. I have some procedures that i would like to move as well. Does anyone have examples on creating stored procedures? Best, -Jason -- MySQL General Mailing List For list archives: http

Tips for optimizing stored procedures

2008-12-29 Thread Vikram Vaswani
Hi all I am new to stored procedures and have just started using them. Is there any Web site you could suggest which discusses common optimization tips for MySQL SPs? Vikram -- Operator: "So what do you need? Besides a miracle." Neo: "Guns. Lots of guns." -- The Matr

stored procedures & embedded server

2008-12-03 Thread Alex Katebi
For embedded server do I need to configure --with-embedded-privilege-control? It looks like stored procedure is looking for mysql.proc table. Thanks.

Re: Query cache problem with stored procedures

2007-08-19 Thread Baron Schwartz
ies inside stored procedures when they contains variable parameters I just created this stored procedure to identify the problem CREATE PROCEDURE `proc_test_qcache`(IN mailbox_number VARCHAR(64)) READS SQL DATA DETERMINISTIC BEGIN SELECT password FROM users WHERE mailbox = mailbox_number;

Query cache problem with stored procedures

2007-08-19 Thread Edoardo Serra
Hi all, I'm benchmarking performance improvement with MySQL Query Cache turned on but I'm facing some problem with queries inside stored procedures when they contains variable parameters I just created this stored procedure to identify the problem CREATE PROCEDURE `proc_test_

回复: Re: drop stored procedures in p repare statment

2007-03-07 Thread xian liu
thanks for your response! Hope engineers of MySQL AB can improve it. Nils Meyer <[EMAIL PROTECTED]> 写道: Hi Xian, xian liu wrote: > ERROR 1295 (HY000): This command is not supported in the prepared statement > protocol yet > mysql> drop procedure ct_tb// > Query OK, 0 rows affected (0.

Re: drop stored procedures in prepare statment

2007-03-07 Thread Nils Meyer
Hi Xian, xian liu wrote: > ERROR 1295 (HY000): This command is not supported in the prepared statement > protocol yet > mysql> drop procedure ct_tb// > Query OK, 0 rows affected (0.00 sec) > > the same, "drop function/trigger xxx" is also not supported in prepare > statment. > > Is it a

drop stored procedures in prepare statment

2007-03-06 Thread xian liu
hi guys, I'm searching stored procedures with prepare statment in mysql-5.0. It seems that can not use 'drop procedure xxx' in prepare statment , like this: mysql> create procedure drpsp() -> begin -> prepare aa from 'drop procedure ct_tb&#x

Re: Create stored procedures with Query Browser

2006-12-07 Thread Chris White
On Wednesday 06 December 2006 17:13, Ed Reed wrote: > Can someone tell me if it is possible to create stored procedures with > Query Browser and if it is can you provide an example the works? > > Thanks Should just be "Script->Create Stored Procedure/Function", give

Create stored procedures with Query Browser

2006-12-06 Thread Ed Reed
Can someone tell me if it is possible to create stored procedures with Query Browser and if it is can you provide an example the works? Thanks

Re: Calling Stored Procedures from PHP

2006-11-28 Thread dpgirago
>> You seem to be mimicking the prepared query feature of mysqli in PHP5. Do you >> have the mysqli extension available? If so, you can use things like: >> >> http://www.php.net/manual/en/function.mysqli-stmt-bind-param.php >> >> which has an example as to how to utilize a prepared query. >> >>

Re: Calling Stored Procedures from PHP

2006-11-28 Thread Filipe Freitas
Chris White wrote: On Monday 27 November 2006 09:12, Filipe Freitas wrote: CREATE PROCEDURE `getListaDeNewsflashes`(in quantidade smallint) COMMENT 'Devolve uma tabela com um número limite de newsflashes' begin PREPARE statement FROM "SELECT * FROM newsflashes ORDER BY RAND() LIMIT ?"; SE

Re: Calling Stored Procedures from PHP

2006-11-28 Thread Chris White
On Monday 27 November 2006 09:12, Filipe Freitas wrote: > CREATE PROCEDURE `getListaDeNewsflashes`(in quantidade smallint) >COMMENT 'Devolve uma tabela com um número limite de newsflashes' > begin > PREPARE statement FROM "SELECT * FROM newsflashes ORDER BY RAND() LIMIT ?"; > SET @limit=quanti

Re: Calling Stored Procedures from PHP

2006-11-28 Thread Remo Tex
Filipe Freitas wrote: Hi, This is not a mysql thing but maybe you can help me. I want to call a stored procedure from PHP, so I tried it like normal querys: mysql_query("CALL mySP();"); with no success. thx I'm not PHP expert but I've managed to do this in perl using DBI (in spite of all d

Re: Calling Stored Procedures from PHP

2006-11-27 Thread Mike Kruckenberg
ise advice. My understanding of using PHP with MySQL stored procedures is that you have to call them through the mysqli extension. It doesn't appear that you are using them. With them your would be using the mysqli_query() function. I don't do a lot of PHP, but I stumbled into a simil

Re: Calling Stored Procedures from PHP

2006-11-27 Thread Filipe Freitas
uccess how? Generally with stored procedures and returning values, you use a session variable and utilize it as OUT like so: DROP PROCEDURE IF EXISTS CURVAL $ CREATE PROCEDURE CURVAL (OUT current INT) BEGIN SELECT value INTO current FROM sequence; END $ DELIMITER ; so when I go to call cur

Re: Calling Stored Procedures from PHP

2006-11-27 Thread Chris White
On Monday 27 November 2006 07:59, Filipe Freitas wrote: > Hi, > > This is not a mysql thing but maybe you can help me. > I want to call a stored procedure from PHP, so I tried it like normal > querys: mysql_query("CALL mySP();"); with no success. > > thx No succ

Re: Calling Stored Procedures from PHP

2006-11-27 Thread Rolando Edwards
Remove the Semicolon mysql_query("CALL mySP()"); Give it a try !!! - Original Message - From: Filipe Freitas <[EMAIL PROTECTED]> To: mysql@lists.mysql.com Sent: Monday, November 27, 2006 10:59:09 AM GMT-0500 US/Eastern Subject: Calling Stored Procedures from PHP Hi

Calling Stored Procedures from PHP

2006-11-27 Thread Filipe Freitas
Hi, This is not a mysql thing but maybe you can help me. I want to call a stored procedure from PHP, so I tried it like normal querys: mysql_query("CALL mySP();"); with no success. thx -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://list

RE: Stored Procedures Question

2006-10-04 Thread Daniel Woods
bleNameIn," order by ",ColNameIn); Prepare s1 from @selStmt; Execute s1; Deallocate Prepare s1; END| DELIMITER ; Dan -Original Message- From: mos [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 04, 2006 10:58 AM To: mysql@lists.mysql.com Subject: Stored Procedures Q

Stored Procedures Question

2006-10-04 Thread mos
I have a dozen tables and I need to perform the same operations on them so I thought I'd create a stored procedure and just pass the table name, column name. I was hoping it would take the parameters and substitute that in the code. So it looks like this: create procedure RankStock(IN TableN

stored procedures and regex

2006-09-27 Thread Gregory Machin
Hi Can mysql's stored procedures do regex function -- Gregory Machin [EMAIL PROTECTED] www.linuxpro.co.za

How to dump stored procedures to a file?

2006-09-01 Thread Matthew Wilson
It seems that mysqldump on mysql 5.0 does not export my stored procedures. How do I dump these out so that other people can load them into their copies of my database? Matt -- A better way of running series of SAS programs: http://overlook.homelinux.net/wilsonwiki/SasAndMakefiles -- MySQL

RE: How to call stored procedures using C API

2006-08-21 Thread Gelu Gogancea
Hi again folks, The problem is solved.Was entirely my fault because i didn't check the version of mysqlclient library. -Original Message- From: Gelu Gogancea Sent: Monday, 21 August, 2006 12:47 PM To: mysql@lists.mysql.com Subject: How to call stored procedures using C API Hi t

How to call stored procedures using C API

2006-08-21 Thread Gelu Gogancea
Hi to all, I try to call a stored procedure using mysql_real_query and with the CLIENT_MULTI_STATEMENTS flag on mysql_real connect() function. When i try the statement "call sp1(@myparam);" the error "can't return the results in actual context" is occur. Please, if is some one which have experie

Parameterized stored procedures via ADO Command Object

2006-08-19 Thread Asif Lodhi
Hi, I have been trying very hard to get this working but I have NOT been able to call the stored procedures in my MySQL database using the ADO (**NOT** Ado.NET) Command object. I want to use stored procedures 'cos I want to restrict access to stored procedures and views only. However, it

Re: manual on stored procedures and triggers

2006-08-09 Thread Chris White
On Wednesday 09 August 2006 07:27 am, Vittorio Zuccalà wrote: > Hello, > i'm searching for a manual about stored procedures and triggers. > I'm new about this arguments but i want to study them. > Unfortunally, mysql online manual is not rich about examples so, can you >

manual on stored procedures and triggers

2006-08-09 Thread Vittorio Zuccalà
Hello, i'm searching for a manual about stored procedures and triggers. I'm new about this arguments but i want to study them. Unfortunally, mysql online manual is not rich about examples so, can you suggest me some online manuals on stored procedures and triggers? Thank you,

ROLLBACK/COMMIT in Stored Procedures

2006-08-04 Thread Asif Lodhi
Hi, In my stored procedures, i want to ROLLBACK when I encounter any invalid values. However, as it happens, I cannot because MySQL does not support COMMIT/ROLLBACK functionality right now (as of ver. 5.0.22 on WinXP Pro). I am setting session variables (Set @XX="Error Message') ac

Re: Stored procedures

2006-07-30 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 pos

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 l

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

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: arrays in stored procedures - pl. help

2006-07-25 Thread Peter Brawley
My question is how do I send multiple sets of data into a stored procedure without doing the things I had outlined. MySQL doesn't have arrays. Pass the data in a comma-delimited string and PREPARE the statement, or pass it as a temp memory table. PB - L P wrote: Chris, thank you fo

Re: arrays in stored procedures - pl. help

2006-07-25 Thread L P
Chris, thank you for the response, but that was not my question. My question is how do I send multiple sets of data into a stored procedure without doing the things I had outlined. On 7/17/06, Chris <[EMAIL PROTECTED]> wrote: L P wrote: > Folks, > say I have a need to add multiple rows at the

Re: Stored procedures

2006-07-25 Thread Jon Molin
_table; Well, first off with stored procedures the format is: DELIMITER $$ CREATE PROCEDURE name () BEGIN .. END $$ DELIMITER ; DELIMITER is done so you can use ;'s within the stored procedure. no need for using blocks and setting delimiter when it's only a single query T

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 for

Re: Stored procedures

2006-07-25 Thread Jon
http://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 &

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()

Re: Stored procedures

2006-07-25 Thread Jon
; To: Sent: Tuesday, July 25, 2006 2:40 PM Subject: Stored procedures > 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 i

Re: Stored procedures

2006-07-25 Thread Visolve DB Team
OTECTED]> To: Sent: Tuesday, July 25, 2006 2:40 PM Subject: Stored procedures 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 t

Stored procedures

2006-07-25 Thread Jon
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 *

Re: arrays in stored procedures - pl. help

2006-07-17 Thread Chris
L P wrote: Folks, say I have a need to add multiple rows at the same time. for instance, say I'm collecting customer information and I want to add 3 addresses and 3 phone numbers at the same time for a customer. The above is quite straightforward to accomplish when there is only one set of data

arrays in stored procedures - pl. help

2006-07-16 Thread L P
Folks, say I have a need to add multiple rows at the same time. for instance, say I'm collecting customer information and I want to add 3 addresses and 3 phone numbers at the same time for a customer. The above is quite straightforward to accomplish when there is only one set of data to deal wit

Question on views, stored procedures & temporary tables

2006-07-10 Thread Daniel Kasak
Hi all. I have a long and complicated chain of queries in MS Access that I want to port to using stored procedures & views. What I'd like to do is something like: 1) stored procedures grabs original data set, and dumps into temporary tables 2) I open a view, which is in turn based

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 e

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 vari

Stored Procedures and DECLARE weirdness

2006-06-09 Thread Chris White
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 var

Re: The MySQL Stored Procedures and Functions is ready ?

2006-05-05 Thread Martijn Tonies
> The MySQL Stored Procedures and Functions is ready to use on production > systems ? > > or support is very ammature ? > > I need to know because is a project desing decision ! > > Tnks !! > > PLEASE I NEED OPINIONS By the time your project is finish

The MySQL Stored Procedures and Functions is ready ?

2006-05-05 Thread Dyego Souza Dantas Leal
The MySQL Stored Procedures and Functions is ready to use on production systems ? or support is very ammature ? I need to know because is a project desing decision ! Tnks !! PLEASE I NEED OPINIONS i'm crazy to use this ? Tnks in advance MySQL , InnoDB and

RE: Stored procedures and views

2006-03-24 Thread Gordon
If the features available in stored procedures {i.e. looping etc.} are required, have you tried having the procedure 1st write/edit the data in a temporary table and at the end select the values you want from that table. I think I might write 2 procedures. One that does the data manipulation

Re: Stored procedures and views

2006-03-24 Thread Martijn Tonies
> I just mean is it possible to hook a set of stored procedures to a view as > opposed to a temporary table that we'd have to explicitly update? "hook"? If you mean: using the views in select statements inside a procedure: sure it. Did you try? Martijn Tonies Database Wo

RE: Stored procedures and views

2006-03-24 Thread Chris Carrier
I just mean is it possible to hook a set of stored procedures to a view as opposed to a temporary table that we'd have to explicitly update? Chris -Original Message- From: Martijn Tonies [mailto:[EMAIL PROTECTED] Sent: Friday, March 24, 2006 10:26 AM To: mysql@lists.mysql.com Su

Re: Stored procedures and views

2006-03-24 Thread Martijn Tonies
this functionality over to stored procedures in > mySql. My question is this: Is it possible to hook a series of stored > procedures to a view so that the data is live and current? What do you mean by that? A view is always current. Can you explain it a bit better? >We could set i

Stored procedures and views

2006-03-24 Thread Chris Carrier
onality over to stored procedures in mySql. My question is this: Is it possible to hook a series of stored procedures to a view so that the data is live and current? We could set it up to run our procedures on some regular interval and dump the result into a temporary table but having up-to-date data

Re: Support for temporary tables inside stored procedures?

2006-03-01 Thread SGreen
"J A" <[EMAIL PROTECTED]> wrote on 03/01/2006 11:08:10 AM: > Does MySQL have support for temporary tables inside stored procedures? > > _ > Express yourself instantly with MSN Messenger! Download

Re: Does MySQL have the ability to send resultsets from stored procedures?

2006-03-01 Thread SGreen
"J A" <[EMAIL PROTECTED]> wrote on 03/01/2006 11:04:50 AM: > Does MySQL have the ability to send resultsets from stored procedures? > (similar to ref cursors in Oracle). > > _ > FREE pop-up blocking

Support for temporary tables inside stored procedures?

2006-03-01 Thread J A
Does MySQL have support for temporary tables inside stored procedures? _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -- MySQL Ge

Does MySQL have the ability to send resultsets from stored procedures?

2006-03-01 Thread J A
Does MySQL have the ability to send resultsets from stored procedures? (similar to ref cursors in Oracle). _ FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01

How to use paramerters in stored procedures

2006-01-20 Thread DGeorgie
Hi, I am trying to do something like this in MySQL 5.0 create function myfunc(param_name varchar(100)) returns int begin .. if exists(select 1 from my_table where name = param_name) then return -1; end if; .

RE: DOT.NET Connector and Stored Procedures: Exception trying to retrieve parameter info

2005-12-05 Thread Reggie Burnett
Jesse is right. You use the ? to start a parameter name. > -Original Message- > From: Rehcra [mailto:[EMAIL PROTECTED] > Sent: Friday, December 02, 2005 2:26 PM > To: Jesse Castleberry; mysql@lists.mysql.com > Subject: Re: DOT.NET Connector and Stored Procedures: Exce

Re: DOT.NET Connector and Stored Procedures: Exception trying to retrieve parameter info

2005-12-02 Thread Rehcra
This fixes my problem. Thanks!. Now to figure out where I got the ampersand from I thought it was in an example. On 12/2/05, Jesse Castleberry <[EMAIL PROTECTED]> wrote: > > Have you tried using "?" instead of "&"? I'm very new to both MySQL and > St

DOT.NET Connector and Stored Procedures: Exception trying to retrieve parameter info

2005-12-02 Thread Rehcra
I'm having a problem getting parameters working. Mysql 5.0.16 mysql-connector-net-1.0.7 VB.NET 1.1 mysql> SHOW CREATE PROCEDURE tbl_slct \G *** 1. row *** Procedure: tbl_slct sql_mode: Create Procedure: CREATE PROCEDURE `tbl_slct`(IN tbl CHAR(64)) R

Re: Stored procedures using a variable tablename

2005-11-07 Thread Stefano Obliquid
ND; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'm_sql; EXECUTE stmt1; DEALLOCATE PREPARE stmt1; END' at line 5 Is this a youth problem of stored procedures or an inten

Stored procedures using a variable tablename

2005-11-06 Thread Stefano Obliquid
Hello, I am moving my first steps with stored procedures in Mysql and I was trying to write a stored procedure using a tablename given as a variable. In this example the local variable m_sequence has the value of the table I want to use. CREATE PROCEDURE p_new_id (IN tablename VARCHAR(128

Re: Sub Selects, Alias Names and stored procedures

2005-11-04 Thread Rhino
L's implementation of SQL :-) Rhino - Original Message - From: "Gordon Bruce" <[EMAIL PROTECTED]> To: "MySQL List" Sent: Friday, November 04, 2005 2:51 PM Subject: Sub Selects, Alias Names and stored procedures After reading one of the recent posts from Gobi [E

Sub Selects, Alias Names and stored procedures

2005-11-04 Thread Gordon Bruce
| Home Focus     | BAE9    |   55 | +-++-+--+ 10 rows in set (0.03 sec) 2. While the subselect does work, it appears to generate a cartesian product. Initial guess with 5.0 and stored procedures would be that  

Re: A question about stored procedures

2005-10-07 Thread Gleb Paharenko
Hello. Very often PREPARED STATEMENTS are helpful in similar situations. For a pity, they are disabled in the current release. See: http://dev.mysql.com/doc/mysql/en/sqlps.html Leonardo Javier Belén wrote: > Hi all, > I am wondering if I can construct a query string inside a stored

RE: A question about stored procedures

2005-10-06 Thread Sujay Koduri
@lists.mysql.com Subject: A question about stored procedures Hi all, I am wondering if I can construct a query string inside a stored procedure and then execute it. I mean, what I want to do is given a set of IN parameters, be able to construct a huge where statement out of them an then complete the

A question about stored procedures

2005-10-06 Thread Leonardo Javier Belén
Hi all, I am wondering if I can construct a query string inside a stored procedure and then execute it. I mean, what I want to do is given a set of IN parameters, be able to construct a huge where statement out of them an then complete the query string to execute. Is that possible? because if t

Re: Stored Procedures and Functions

2005-09-27 Thread Gleb Paharenko
nswer from the list members if your add more details about table structure and your application logic. >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

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? >

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 GLOBA

Stored Procedures and Functions

2005-09-26 Thread Blue Wave Software
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

  1   2   3   >