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

Doubt with sored procedures - II

2013-04-18 Thread Antonio Fernández Pérez
I have discovered that in MySQL client program I can define "definer" and "sql security". This is the detail. Thanks everybody. Best regards, Antonio.

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: Database procedures

2010-12-22 Thread 杨涛涛
> | @delete_id | > ++ > | NULL | > ++ > 1 row in set (0.00 sec) > > > >The delete_id should however return the value 3823054 and not null. > > Regards > Machiel > > > > > > -Original Message- > From: Ma

Re: Database procedures

2010-12-14 Thread Machiel Richards
rn the value 3823054 and not null. Regards Machiel -Original Message- From: Machiel Richards To: mysql mailing list Subject: Database procedures Date: Tue, 14 Dec 2010 08:37:10 +0200 HI All I am hoping that someone with more experience than me can assist here. I

Database procedures

2010-12-13 Thread Machiel Richards
HI All I am hoping that someone with more experience than me can assist here. I am trying to find out how to write a database procedure within MySQL, however I have never worked with procedures in my life and the resources I found on the net thus far seems greek to me

RE: [MySQL] Re: Variables in stored procedures

2010-05-01 Thread Ashley M. Kirchner
tored procedures I am afraid you need to construct the whole stored procedure using CONCAT.

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.

Replication and procedures

2008-06-30 Thread Olaf Stein
Hi all, I am just getting started with replicating my servers and noticed that queries executed by procedures on the master are not replicated to my slaves. I need to know if this can be changed or if I have to get rid of my procedures? Thanks Olaf

Can I dump procedures with mysqldump using --tabs?

2008-06-12 Thread Jim Lyons
I usually use the --tabs option on mysqldump. However, if a table has a function, procedure, or trigger, the code is not written to a file but rather to standard out. Is this the only way to dump them using the --tabs option? I thought of trying to use the Information Schema database somehow but

Re: Question about mysql procedures

2008-04-11 Thread Joshua D. Drake
On Fri, 11 Apr 2008 14:52:30 -0700 "Rob Wultsch" <[EMAIL PROTECTED]> wrote: > On Fri, Apr 11, 2008 at 2:15 PM, Joshua D. Drake > <[EMAIL PROTECTED]> wrote: > > Hello, > > > > Can MySQL functions/stored procedures access database data? > >

Re: Question about mysql procedures

2008-04-11 Thread Paul DuBois
At 2:15 PM -0700 4/11/08, Joshua D. Drake wrote: Hello, Can MySQL functions/stored procedures access database data? Yes, with some limitations. You will want to read this section to see whether what you want to do is restricted: http://dev.mysql.com/doc/refman/5.0/en/routine

Re: Question about mysql procedures

2008-04-11 Thread Rob Wultsch
On Fri, Apr 11, 2008 at 2:15 PM, Joshua D. Drake <[EMAIL PROTECTED]> wrote: > Hello, > > Can MySQL functions/stored procedures access database data? > > Joshua D. Drake Yes. Is there something in particular you are looking to do? -- Rob Wultsch [EMAIL PROTECTED] wul

Question about mysql procedures

2008-04-11 Thread Joshua D. Drake
Hello, Can MySQL functions/stored procedures access database data? Joshua D. Drake -- The PostgreSQL Company since 1997: http://www.commandprompt.com/ PostgreSQL Community Conference: http://www.postgresqlconference.org/ United States PostgreSQL Association: http://www.postgresql.us/ Donate

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: View pocedures/backup procedures

2007-07-10 Thread Dan Nelson
In the last episode (Jul 10), Andrey Dmitriev said: > How do I view and backup my procedural code? > > In oracle it would be something like > Select text from user_source where name='MY_PROCEDURE' order by line; > > I did mysqldump, and didn't see any of the f

View pocedures/backup procedures

2007-07-10 Thread Andrey Dmitriev
How do I view and backup my procedural code? In oracle it would be something like Select text from user_source where name='MY_PROCEDURE' order by line; I did mysqldump, and didn't see any of the functions or procedures created. In Oracle they'd be backed up either via

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

2007-03-07 Thread xian liu
y OK, 0 rows affected (0.00 sec) > > the same, "drop function/trigger xxx" is also not supported in prepare > statment. > > Is it a lack of feature in MySQL-5.0 version ?? Exactly. MySQL doesn't support dropping/creating functions/procedures or triggers in funct

Re: drop stored procedures in prepare statment

2007-03-07 Thread Nils Meyer
re > statment. > > Is it a lack of feature in MySQL-5.0 version ?? Exactly. MySQL doesn't support dropping/creating functions/procedures or triggers in functions or triggers. regards Nils -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To

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
ess 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 curv

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
if is some one which have experience whith the handling store procedures using MySQL C API, to give me a solution. I use mysql-5.0.2x on Fedora 5. Thank you, -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

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

launch store procedures from windows client

2006-02-15 Thread GMaill_IdaoNet
Hi, List Please, Someone know wy MyOdbc don't run store procedures from windows client ? I launch it from Asp and Fox 8 and answer with error sintax. The Same store procedure run from Java and on MySql properly. Thanks, Elkin Ortiz Medellin,Colombia - Original Message -

launch store procedures from windows client

2006-02-07 Thread ElkinFernando Ortiz
Hello, list if launch a store procedure from two differents clients from windows, Visual FoxPro 8.0 and Asp, for eject a store procedure in the database MySql 5, the mysql connector answer with : >From Asp MyOdbcConnector 3.51.12 [MySQL][ODBC 3.51 Driver]You have an error in your SQL > syntax; che

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; .

  1   2   3   4   >