Re: Temporary Tables with Triggers Problem

2013-05-29 Thread hsv
2013/05/29 14:51 +0100, Neil Tompkins This is my Trigger which doesn't seem to work; but doesn't cause a error DROP TEMPORARY TABLE IF EXISTS tempHotelRateAvailability; CREATE TEMPORARY TABLE tempHotelRateAvailability(AuditTrailId varchar(36),UserId bigint(20),ActionType enum('INSER

Re: Temporary Tables with Triggers Problem

2013-05-29 Thread Neil Tompkins
OK, the data is going into the temp table. But when I run the command INSERT INTO AuditTrail SELECT tempHotelRateAvailability.* FROM tempHotelRateAvailability; from the TRIGGER it does not copy the data. However if I run this query INSERT INTO AuditTrail SELECT tempHotelRateAvailability.* FROM

Re: Temporary Tables with Triggers Problem

2013-05-29 Thread Ananda Kumar
But, does it work inside the trigger. If not, then based on the logic, there will not be any data, and data goes not get inserted from temp table to innodb table On Wed, May 29, 2013 at 7:29 PM, Neil Tompkins wrote: > I took the following lines of code slightly modified and it returned some > d

Re: Temporary Tables with Triggers Problem

2013-05-29 Thread Neil Tompkins
I took the following lines of code slightly modified and it returned some data using a normal Query Editor CREATE TEMPORARY TABLE tempHotelRateAvailability(AuditTrailId varchar(36),UserId bigint(20),ActionType varchar(36),TableName varchar(36),RowKey varchar(255),FieldName varchar(36),OldValue var

Re: Temporary Tables with Triggers Problem

2013-05-29 Thread Ananda Kumar
did u check if data is getting inserted into tempHotelRateAvailability On Wed, May 29, 2013 at 7:21 PM, Neil Tompkins wrote: > This is my Trigger which doesn't seem to work; but doesn't cause a error > > DROP TEMPORARY TABLE IF EXISTS tempHotelRateAvailability; > > CREATE TEMPORARY TABLE te

Re: Temporary Tables with Triggers Problem

2013-05-29 Thread Neil Tompkins
This is my Trigger which doesn't seem to work; but doesn't cause a error DROP TEMPORARY TABLE IF EXISTS tempHotelRateAvailability; CREATE TEMPORARY TABLE tempHotelRateAvailability(AuditTrailId varchar(36),UserId bigint(20),ActionType enum('INSERT','UPDATE','DELETE'),TableName varchar(36),RowK

Re: Temporary Tables with Triggers Problem

2013-05-29 Thread Ananda Kumar
can you please share the code of the trigger. Any kind of error your getting On Wed, May 29, 2013 at 6:49 PM, Neil Tompkins wrote: > Hi, > > I've a trigger that writes some data to a temporary table; and at the end > of the trigger writes all the temporary table data in one insert to our > norm

Temporary Tables with Triggers Problem

2013-05-29 Thread Neil Tompkins
Hi, I've a trigger that writes some data to a temporary table; and at the end of the trigger writes all the temporary table data in one insert to our normal Innodb table. However, for some reason the trigger isn't copying the table from the temporary table to the Innodb table. If I write in the

Re: Temporary tables created on disk: 99%

2010-06-01 Thread Rob Wultsch
On Tue, Jun 1, 2010 at 8:40 AM, John G. Heim wrote: > On my db server, mysql has 2 gigabytes for temporary tables and yet its > creating 99% of temporary tables on disk. > > According to mysqltuner, 99% of temporary tables are created on disk. Probably blobs: "Instances of BLO

Temporary tables created on disk: 99%

2010-06-01 Thread John G. Heim
On my db server, mysql has 2 gigabytes for temporary tables and yet its creating 99% of temporary tables on disk. According to mysqltuner, 99% of temporary tables are created on disk. I've confirmed this via the "show global status like 'created%'" command. This

Re: temporary tables on disk?

2007-09-21 Thread Chris Scheller
Michael Dykman wrote on Fri, Sep 21, 2007 at 01:37:57PM -0400: > There is a setting in your my.cnf which specifies the threshold at > which temporary tables will be put to disk instead of being held in > RAM. This has to be a dynamic decision as the system has to consider > available

Re: temporary tables on disk?

2007-09-21 Thread Michael Dykman
There is a setting in your my.cnf which specifies the threshold at which temporary tables will be put to disk instead of being held in RAM. This has to be a dynamic decision as the system has to consider available RAM and the size of any given temporary table.. under normal circumstances, the

Re: temporary tables on disk?

2007-09-21 Thread Chris Scheller
nt to the slave, and the table is created on the slave. this much i know from slaves dying then not restarting due to the missing temporary table. my current problem is my slaves are creating myisam temporary tables on disk and alot of them. which eventualy results in mysqld no longer being able

Re: temporary tables on disk?

2007-09-20 Thread Baron Schwartz
cisions on the slave that it did on the master, the slave will also create a temporary table during query processing. Michael Dykman wrote: Temporary tables only exist for the length of time that the connection that created them remains connected and are only visible to that connection. There

Re: temporary tables on disk?

2007-09-20 Thread Michael Dykman
Temporary tables only exist for the length of time that the connection that created them remains connected and are only visible to that connection. There is no reason to replicate these to a slave at all, as no client connecting to that slave would ever be able to see them. - michael dykman

temporary tables on disk?

2007-09-20 Thread Chris Scheller
according to http://dev.mysql.com/doc/refman/4.1/en/internal-temporary-tables.html temporary tables can sometimes be written to disk as myisam. in replication are these myisam temp tables sent to the slaves as myisam tables or in memory tables? -- MySQL General Mailing List For list archives

Re: temporary tables

2006-08-16 Thread Curtis Maurand
n July 17 2006 6:28pm [Delete] [Edit] > Please note that the current MySQL priviledge model does not support > creating a read-only user for an application that needs to work with > temporary tables. In other words, the 'SELECT,CREATE TEMPORARY TABLES' > privileges are no

Re: temporary tables

2006-08-15 Thread Frederic Wenzel
On 8/15/06, Dan Buettner <[EMAIL PROTECTED]> wrote: It would be nice if MySQL would have a more generic 'TEMPORARY TABLES' permission that would allow one to create, insert, delete from and drop temporary tables without having to give up insert/update/delete privileges on the rea

Re: temporary tables

2006-08-15 Thread Curtis Maurand
it] > Please note that the current MySQL priviledge model does not support > creating a read-only user for an application that needs to work with > temporary tables. In other words, the 'SELECT,CREATE TEMPORARY TABLES' > privileges are not sufficient to let an application work with &

Re: temporary tables

2006-08-15 Thread Dan Buettner
n/5.0/en/grant.html Also here is a comment from the same page: QUOTE Posted by Cristian Gafton on July 17 2006 6:28pm[Delete] [Edit] Please note that the current MySQL priviledge model does not support creating a read-only user for an application that needs to work with temporary tables. I

Re: temporary tables

2006-08-15 Thread Curtis Maurand
here is what I get. I'm logged in as the user admin (really a regular user.) mysql> create temporary table customer_tmp as select * from customer limit 0; Query OK, 0 rows affected (0.00 sec) Records: 0 Duplicates: 0 Warnings: 0 mysql> load data infile '/home/bluetarp/ezauth/customers.txt' in

Re: temporary tables

2006-08-15 Thread Dan Buettner
Or possibly that the mysql user on the box does not have access to the data file in question. Can you post the error messages you get? Dan On 8/15/06, Curtis Maurand <[EMAIL PROTECTED]> wrote: This may sound like a stupid question, but I have to ask. I've been running a script that goes like

temporary tables

2006-08-15 Thread Curtis Maurand
This may sound like a stupid question, but I have to ask. I've been running a script that goes like the following. use ecommerce; create temporary table customer_tmp as select * from customer limit 0; load data infile '/home/bluetarp/ezauth/customers.txt' into table \customer_tmp; at which po

Views can't refer to temporary tables

2006-07-11 Thread Daniel Kasak
Greetings. Continuing on from my previous question, I've discovered that I *can't* create views which refer to temporary tables. Is there any plan to drop this requirement? -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060

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: Temporary table ERROR 1109 (42S02) where are temporary tables kept?

2006-07-05 Thread Jacob, Raymond A Jr
Thanks again, raymond -Original Message- From: Michael Stassen [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 05, 2006 14:54 To: Jacob, Raymond A Jr Cc: mysql@lists.mysql.com Subject: Re: Temporary table ERROR 1109 (42S02) where are temporary tables kept? Jacob, Raymond A Jr wrote

Re: Temporary table ERROR 1109 (42S02) where are temporary tables kept?

2006-07-05 Thread Michael Stassen
Jacob, Raymond A Jr wrote: Thank you, I was definitely on the wrong track on this one. I annotated your commands to make sure that I understood what they were doing. Are my comments correct? --- You have the wrong syntax. You can't mention a table in the WHERE clause that wasn't in t

RE: Temporary table ERROR 1109 (42S02) where are temporary tables kept?

2006-07-05 Thread Jacob, Raymond A Jr
Thank you, I was definitely on the wrong track on this one. I annotated your commands to make sure that I understood what they were doing. Are my comments correct? --- You have the wrong syntax. You can't mention a table in the WHERE clause that wasn't in the FROM clause. Try DELE

Re: Temporary table ERROR 1109 (42S02) where are temporary tables kept?

2006-07-05 Thread Michael Stassen
Jacob, Raymond A Jr wrote: I ran the following commands: USE snort; CREATE TEMPORARY TABLE sidtemp SELECT cid FROM event WHERE timestamp < '2006-05-01'; ... SELECT count(*) from sidtemp; count(*) 7501376 DELETE FROM data WHERE data.cid = sidtemp.cid; ERROR 1109 (42S02): Unkown table 'sidtem

Temporary table ERROR 1109 (42S02) where are temporary tables kept?

2006-07-05 Thread Jacob, Raymond A Jr
I ran the following commands: USE snort; CREATE TEMPORARY TABLE sidtemp SELECT cid FROM event WHERE timestamp < '2006-05-01'; ... SELECT count(*) from sidtemp; count(*) 7501376 DELETE FROM data WHERE data.cid = sidtemp.cid; ERROR 1109 (42S02): Unkown table 'sidtemp' in where clause SHOW ta

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

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

Re: SELECT/JOIN performance on temporary tables depends on timing of index creation

2005-11-25 Thread Allan Miller
Gleb: Aha. OK, we tried using OPTIMIZE instead of ANALYZE, and that does indeed update the Cardinality of the index, the way you would expect. Thanks very much for figuring this out! I really appreciate the help. Thanks again! Allan "Gleb Paharenko" <[EMAIL PROTECTED]> wrote in message new

Re: SELECT/JOIN performance on temporary tables depends on timing of index creation

2005-11-24 Thread Gleb Paharenko
Hello. I've checked this and found that ANALYZE table really doesn't work, but OPTIMIZE table made its work. In case it won't help you send to list complete definitions of you tables and queries. Allan Miller wrote: > Hi Gleb, > > Thanks for the quick response. Unfortunately, ANALYZE

Re: SELECT/JOIN performance on temporary tables depends on timing of index creation

2005-11-23 Thread Allan Miller
well. Have a look here: >http://dev.mysql.com/doc/refman/5.0/en/how-to-avoid-table-scan.html > > > > Allan Miller wrote: > > In MySQL 4.1.11, if you create two temporary tables with non-unique indices > > as part of the CREATE TEMPORARY TABLE statement, then >

Re: SELECT/JOIN performance on temporary tables depends on timing of index creation

2005-11-23 Thread Gleb Paharenko
d help as well. Have a look here: http://dev.mysql.com/doc/refman/5.0/en/how-to-avoid-table-scan.html Allan Miller wrote: > In MySQL 4.1.11, if you create two temporary tables with non-unique indices > as part of the CREATE TEMPORARY TABLE statement, then > insert several hundr

SELECT/JOIN performance on temporary tables depends on timing of index creation

2005-11-23 Thread Allan Miller
In MySQL 4.1.11, if you create two temporary tables with non-unique indices as part of the CREATE TEMPORARY TABLE statement, then insert several hundred (or thousand) rows, a subsequent SELECT using a JOIN between the two tables is substantially slower than if you create the indices after

Re: temporary tables

2005-03-15 Thread Gleb Paharenko
ll store data temporarily, if a php > page generates data to fill the table, then any number of queries could > be run on the table, and then be automatically be deleted if it's not > queries for let's say an hour or something like that. > > Can this be accomplis

Re: temporary tables

2005-03-15 Thread Alec . Cawley
lly be deleted if it's not > queries for let's say an hour or something like that. > > Can this be accomplished with temporary tables, or should i just create > static tables and then use a cron job to delete unused ones? > > What is the best way to approach this? Te

temporary tables

2005-03-15 Thread Ted Toporkov
t. Can this be accomplished with temporary tables, or should i just create static tables and then use a cron job to delete unused ones? What is the best way to approach this? Ted Toporkov [EMAIL PROTECTED] -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsub

Re: persistent temporary tables

2005-01-27 Thread Steve Buehler
At 08:30 AM 1/27/2005, electroteque wrote: i have come to realise that temporary tables are only persistent for 30 secs, is there a way to extend that ? My applications is attempting to store data before and entry is made and then insert the data from the temporary table after the entry is

persistent temporary tables

2005-01-27 Thread electroteque
i have come to realise that temporary tables are only persistent for 30 secs, is there a way to extend that ? My applications is attempting to store data before and entry is made and then insert the data from the temporary table after the entry is inserted then drop the temp table. This should

joins on temporary tables, and grant statement limitations

2004-12-17 Thread David Mehringer
MySQL Manual A.7.3 TEMPORARY TABLE "You cannot refer to a TEMPORARY table more than once in the same query." Anything in the works to fix this pretty major limitation? Also, any chance of being able to specify wildcards in table names in GRANT statements any time soon? E.g. GRANT ALL ON test.'t

Temporary tables rights

2004-12-06 Thread Alejandro D. Burne
Time ago I submit a post about temp tables and rights privileges and it's in my head still. There is an user privilege to create temporary table (create_tmp_table_priv) but when the "owner of the table" need drop this table can't do (if have drop priv can, but it's a bomb time). Someone have an ide

Re: temporary tables, replication, and innodb tables

2004-11-21 Thread Heikki Tuuri
Mike, - Original Message - From: "Mike Debnam" <[EMAIL PROTECTED]> Newsgroups: mailing.database.myodbc Sent: Sunday, November 21, 2004 9:25 PM Subject: temporary tables, replication, and innodb tables I'm working on a new series of queries that share a temporary ta

temporary tables, replication, and innodb tables

2004-11-21 Thread Mike Debnam
I'm working on a new series of queries that share a temporary table. I've tried using both "create temporary table select" and "create temp table" then "insert into t ... select from y". Both seem to create a lock that (if the select portion runs long enough) causes a deadlock with the replica

Re: temporary tables and replication

2004-09-01 Thread Eric Bergen
I believe some versions of 4.0 have problem with auto dropping temporary tables in replication. The easy fix is to drop temporary tables when you are finished with them instead of relying on mysql to do it for you. -- Eric Bergen [EMAIL PROTECTED] On Wed, 1 Sep 2004 08:16:43 -0600, Alfredo

temporary tables and replication

2004-09-01 Thread Alfredo Cole
and restart the slave SQL thread with "SLAVE START". We stopped at log 'central-bin.001' position 12475966 Is there a problem in using temporary tables and replication? I have not found any clues in the manual. If there is a problem, perhaps someone can point to a url where I

Re: replication of temporary tables

2004-05-13 Thread Egor Egorov
Tom Cunningham <[EMAIL PROTECTED]> wrote: > > In short: what is the standard MySQL handling of temporary tables, > *especially* when you've got a slave filter on to only replicate certain > tables? These options apply to the temporary tables too. > > My replica

replication of temporary tables

2004-05-12 Thread Tom Cunningham
Hi, In short: what is the standard MySQL handling of temporary tables, *especially* when you've got a slave filter on to only replicate certain tables? My replication stopped over the weekend, because a query was executed which created temporary tables, then used that table to update o

Re: Temporary tables in mySQL

2004-03-15 Thread Rhino
ent; select * from join_temp; Rhino - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 15, 2004 3:31 PM Subject: Temporary tables in mySQL > Hi, > Is it possible to create a temporary table in mySQL using columns from tables in

Temporary tables in mySQL

2004-03-15 Thread rrshanks
Hi, Is it possible to create a temporary table in mySQL using columns from tables in two databases? Basically I want to split a table between two databases and if some logic is satisfied I want to "merge"(the right word?) the two tables into one in one of these databases. What's the best wa

Re: temporary tables

2004-01-24 Thread Paul DuBois
At 10:33 -0500 1/24/04, Mike Mapsnac wrote: Which of these three joins are using temporary table? # 1 Inner Join # 2 Left Join #3 Outer Join I don't understand what you're asking here. Can you be more specific about what you want to know? -- Paul DuBois, MySQL Documentation Team Madison, Wisco

temporary tables

2004-01-24 Thread Mike Mapsnac
Which of these three joins are using temporary table? # 1 Inner Join # 2 Left Join #3 Outer Join Thanks

Temporary tables rights

2004-01-02 Thread Alejandro D. Burne
I'll be fighting with rights over tmp tables time ago, basically I want give full temporary tables management but not for other all tables, including select right.   The only way to do that work was insert in tables_priv for each user a "user/tmp_table_name" record granting

Re: Temporary tables rights

2003-12-15 Thread adburne
ALUES ('host.localdomain','db1','user1','TMP_Liq', USER(), 'Select,Insert,Update,Delete,Alter,Drop,Index','')   and this work!   Alejandro   ---Mensaje original---   De: Matt W Fecha: sábado 13 de diciembre de 2003 22:36:54 A: adburne

Re: Temporary tables rights

2003-12-13 Thread Matt W
le to TRUNCATE it, I think. And actually, if you can TRUNCATE the other tables (if the DELETE privilege allows it), isn't that just as bad as DROPping them? :-) Matt - Original Message - From: adburne To: [EMAIL PROTECTED] Sent: Friday, December 12, 2003 11:31 AM Subject: Temporary tab

Temporary tables rights

2003-12-12 Thread adburne
Hi, I'm granting users to use temporary tables as:   GRANT CREATE TEMPORARY TABLES ON db1.* TO user1;   and having grants on many other tables as:   GRANT SELECT, INSERT, UPDATE, DELETE ON db1.table1 TO user1; GRANT SELECT, INSERT, UPDATE, DELETE ON db1.table2 TO user1;   but how

Re: SHOWing temporary tables

2003-11-20 Thread Victoria Reznichenko
"H?ctor Villafuerte D." <[EMAIL PROTECTED]> wrote: > Hi all, > How can I see the temporary tables in a database? You can't. > Is there something like SHOW TEMPORARY TABLES? -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email i

SHOWing temporary tables

2003-11-19 Thread "Héctor Villafuerte D."
Hi all, How can I see the temporary tables in a database? Is there something like SHOW TEMPORARY TABLES? Thanks, Hector -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: temporary tables

2003-11-05 Thread Victoria Reznichenko
[EMAIL PROTECTED] wrote: > > I am having trouble creating temp tables. An error message keeps coming up > saying that @localhost does not exist. (or something like that) can anyone > help. Could you show us exactly error message? Does user have CREATE TEMPORARY TABLES privileg

temporary tables

2003-11-04 Thread Mhpetzold
I am having trouble creating temp tables. An error message keeps coming up saying that @localhost does not exist. (or something like that) can anyone help. Thanks mhp

RE: GRANT CREATE TEMPORARY TABLES

2003-10-28 Thread Steve Buehler
can be manipulated using something like the following, which is a little easier to try out: GRANT CREATE TEMPORARY TABLES ON my_db.* TO 'user' IDENTIFIED BY 'pass'; I'm doing this and it works fine :) I guess if you have multiple databases and users you could make

GRANT CREATE TEMPORARY TABLES

2003-10-28 Thread Steve Buehler
temporary tables are not being created. How can I turn on the GRANT function so that each of the users that have databases can create temporary tables in their own databases ONLY. Can this be done with a GLOBAL type of grant? If so, what would be the Grant statement to turn this on? Or will

RE: Detect temporary tables

2003-10-23 Thread Jeff McKeon
> > I know I can issue "show tables" to give me a list of > tables from the > > current database, how can I do the same thing with > temporary tables? > > That is, is there a command to list the current temporary tables? > > You can't. RATS!!! Je

Re: Detect temporary tables

2003-10-23 Thread Egor Egorov
"Jeff McKeon" <[EMAIL PROTECTED]> wrote: > I know I can issue "show tables" to give me a list of tables from the > current database, how can I do the same thing with temporary tables? > That is, is there a command to list the current temporary tables? You

Detect temporary tables

2003-10-22 Thread Jeff McKeon
I know I can issue "show tables" to give me a list of tables from the current database, how can I do the same thing with temporary tables? That is, is there a command to list the current temporary tables? Thanks, Jeff -- MySQL General Mailing List For list archives: http://lists.mysql

Re: Temporary tables

2003-09-25 Thread fbeltran
Thanks! Antony Dovgal <[EMAIL PROTECTED]> 25/09/2003 02:33 a.m. To [EMAIL PROTECTED] cc Subject Re: Temporary tables On Thu, 25 Sep 2003 02:26:28 -0600 [EMAIL PROTECTED] wrote: > 1) What happens if two (or more) users create a temporary table with the > same name at t

Re: Temporary tables

2003-09-25 Thread Antony Dovgal
ormance issues of temporary tables? > 4) Can i use session based temporary tables? http://www.mysql.com/doc/en/CREATE_TABLE.html The temporary table is visible only to the current connection, and will be deleted automatically when the connection is closed. This means that two different connectio

Temporary tables

2003-09-25 Thread fbeltran
Due to complex query needs and the lack of subqueries in the current production version of MySQL i have to use temporary tables, but there is almost no information about the behavior of them in the "manual.pdf" documentation file of mySQL database. Does any one know where to

Re: Temporary tables

2003-09-11 Thread Egor Egorov
"Mikhail Entaltsev" <[EMAIL PROTECTED]> wrote: > Hi, > > I've found the phrase in MySQL documentation > http://www.mysql.com/doc/en/Temporary_table_problems.html > > "You can't use temporary tables more than once in the same query. For >

Temporary tables

2003-09-11 Thread Mikhail Entaltsev
Hi, I've found the phrase in MySQL documentation http://www.mysql.com/doc/en/Temporary_table_problems.html "You can't use temporary tables more than once in the same query. For example, the following doesn't work. mysql> SELECT * FROM temporary_table, temporary_table AS t2

Re: Temporary Tables

2003-09-04 Thread Alec . Cawley
You said -- I am trying to establish temporary tables that are accessible via MyODBC. I can create the table with data in it and query it from the MySQL command line, but it never shows up through MyODBC. Is there something magical about temporary

Temporary Tables

2003-09-04 Thread Tbird67ForSale
I am trying to establish temporary tables that are accessible via MyODBC. I can create the table with data in it and query it from the MySQL command line, but it never shows up through MyODBC. Is there something magical about temporary (memory-based) tables that prevents this? I am running

Temporary Tables

2003-09-04 Thread Tbird67ForSale
I am trying to establish temporary tables that are accessible via MyODBC. I can create the table with data in it and query it from the MySQL command line, but it never shows up through MyODBC. Is there something magical about temporary (memory-based) tables that prevents this? I am running

Alpha 4.1 - Temporary Tables Question

2003-07-24 Thread Peter Gorelczenko
I'm running as normal user (not root or database owner). This user has create temporary table priv. show tables partial: GRANT CREATE TEMPORARY TABLES ON `foobar0`.* TO 'foo'@'localhost' -> (foobar0 and foo are masks for the database name and user, respectively) I

Re: Alpha 4.1-Temporary Tables-Alter/Update

2003-07-22 Thread Peter Gorelczenko
So, CREATE TEMPORARY TABLES only allows the initial create and insert into a temporary table. Any other privileges like alter, update, delete, and possibly drop are reserved for real tables and database grants. Don't get me wrong, I'm glad we have the create temp table grant/o

Re: Alpha 4.1-Temporary Tables-Alter/Update

2003-07-22 Thread Egor Egorov
Peter Gorelczenko <[EMAIL PROTECTED]> wrote: > Good Morning, > I'm running Alpha 4.1 on Linux. I'm new to MySql but familliar with other > databases. I set up a user with "Create Temporary Tables" permissions. That > user can create temp tables but can

Alpha 4.1-Temporary Tables-Alter/Update

2003-07-22 Thread Peter Gorelczenko
Good Morning, I'm running Alpha 4.1 on Linux. I'm new to MySql but familliar with other databases. I set up a user with "Create Temporary Tables" permissions. That user can create temp tables but can not alter or update the table. That user is getting "Upda

Re: Temporary tables - MySQL 4.1 alpha

2003-06-25 Thread Nils Valentin
t; > > thats a good explanation. That makes many things clearer now. > > Thank you very much. > > > > However, when not having the set the tmpdir variable were are the > > temporary tables stored ? (I searched the whole harddisc) I assume in > > this ca

Re: Temporary tables - MySQL 4.1 alpha

2003-06-25 Thread Victoria Reznichenko
"Nils Valentin" <[EMAIL PROTECTED]> wrote: > WOW Victoria, > > thats a good explanation. That makes many things clearer now. > Thank you very much. > > However, when not having the set the tmpdir variable were are the temporary > tables stored ? (I sea

Re: Temporary tables - MySQL 4.1 alpha

2003-06-25 Thread Nils Valentin
WOW Victoria, thats a good explanation. That makes many things clearer now. Thank you very much. However, when not having the set the tmpdir variable were are the temporary tables stored ? (I searched the whole harddisc) I assume in this case that they must be stored in the memory, is that

Re: Temporary tables - MySQL 4.1 alpha

2003-06-25 Thread Victoria Reznichenko
"Nils Valentin" <[EMAIL PROTECTED]> wrote: > I have some questions about temporary tables. I would appreciate any replies: > > I created a temporary table f.e. like this: > > mysql> create temporary table temp SELECT * FROM relations; > Query OK, 4

Temporary tables - MySQL 4.1 alpha

2003-06-24 Thread Nils Valentin
Hi MySQL Fans ;-), I have some questions about temporary tables. I would appreciate any replies: I created a temporary table f.e. like this: mysql> create temporary table temp SELECT * FROM relations; Query OK, 4 rows affected (2.35 sec) Records: 4 Duplicates: 0 Warnings: 0 When I do my

View all temporary tables in a database

2003-03-19 Thread Ahmed S K Anis
HI, I create temporary tables using the query CREATE TEMPORARY TABLE .. How do i list all the temporary tables in the database "SHOW TABLES STATUS " does not show the temporary tables. Thanks Anis - Befo

re: Temporary tables/ view in MySQL

2003-03-13 Thread Victoria Reznichenko
On Thursday 13 March 2003 10:05, Ahmed S K Anis wrote: > Are temporary tabels Yes. Take a look at: http://www.mysql.com/doc/en/CREATE_TABLE.html > or views supported in MySQL? Nope. -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored b

How to view all the temporary tables ?

2003-03-13 Thread Ahmed S K Anis
Hi, I am able to create temporary tables in MYSQL,using CREATE TEMPORARY TABLE I am using JDBC for this. Just like "show tables" will give all the table names in that databases, is there any query to view all current Temporary table names?

Re: Temporary tables/ view in MySQL

2003-03-13 Thread Dyego Souza do Carmo
ouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php Temporary tables is supported : MySQL Manual | 6.5.3 CREATE TABLE Syntax http://www.mysql.com/doc/en/CREATE_TABLE.html The views is not supported yet ! It is planned to im

Temporary tables/ view in MySQL

2003-03-13 Thread Ahmed S K Anis
Hi. Are temporary tabels or views supported in MySQL? Some info required please Thanks Anis - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archi

Re: Temporary Tables

2003-03-05 Thread Mamatha Balasubramanian
Thanks! Mamatha From: Paul DuBois <[EMAIL PROTECTED]> To: "Mamatha Balasubramanian" <[EMAIL PROTECTED]>,[EMAIL PROTECTED] Subject: Re: Temporary Tables Date: Tue, 4 Mar 2003 17:31:36 -0600 At 23:19 + 3/4/03, Mamatha Balasubramanian wrote: Thank you once again.

Re: Temporary Tables

2003-03-04 Thread Paul DuBois
At 12:08 +1100 3/5/03, Daniel Kasak wrote: Paul DuBois wrote: That is, you're making an assumption that cannot necessarily be made. If you can guarantee that the web script will establish a new connection, and the connection will terminate when the script ends, you can indeed do what you describe

Re: Temporary Tables

2003-03-04 Thread Daniel Kasak
Paul DuBois wrote: That is, you're making an assumption that cannot necessarily be made. If you can guarantee that the web script will establish a new connection, and the connection will terminate when the script ends, you can indeed do what you describe above. But you *cannot* do that if you're r

Re: Temporary Tables

2003-03-04 Thread Paul DuBois
At 15:56 -0800 3/4/03, William R. Mussatto wrote: > At 23:19 + 3/4/03, Mamatha Balasubramanian wrote: Thank you once again. I have a web-interface that does search on a given text and I would have a script that creates a temporary table. So according to you, in my script, I just to need cr

Re: Temporary Tables

2003-03-04 Thread KH Chiu
7;t > have disappeared. > > You can guard against this by issuing this query before creating the > TEMPORARY table: > > DROP TABLE IF EXISTS tbl_name > > > > >Thanks, > >Mamatha > > > > > > > > > > > >>From: Paul DuBo

Re: Temporary Tables

2003-03-04 Thread William R. Mussatto
: > > DROP TABLE IF EXISTS tbl_name > > >> >>Thanks, >>Mamatha Probably even better to have the Drop Table at the end of the script that used it. >> >> >> >>>From: Paul DuBois <[EMAIL PROTECTED]> >>>To: "Mamatha Balasubramani

Re: Temporary Tables

2003-03-04 Thread Paul DuBois
EMPORARY table won't have disappeared. You can guard against this by issuing this query before creating the TEMPORARY table: DROP TABLE IF EXISTS tbl_name Thanks, Mamatha From: Paul DuBois <[EMAIL PROTECTED]> To: "Mamatha Balasubramanian" <[EMAIL PROTECTED]>,[EMAIL PROTECTED]

Re: Temporary Tables

2003-03-04 Thread Mamatha Balasubramanian
thereby using the same program). Can you please elaborate a little more on this? Thanks, Mamatha From: Paul DuBois <[EMAIL PROTECTED]> To: "Mamatha Balasubramanian" <[EMAIL PROTECTED]>,[EMAIL PROTECTED] Subject: Re: Temporary Tables Date: Tue, 4 Mar 2003 17:06:30 -0600

Re: Temporary Tables

2003-03-04 Thread Daniel Kasak
Mamatha Balasubramanian wrote: Hi, I would like to know how MySQL handles multiple temporary tables? 1. Can multiple temporary tables be created at the same time? Yes 2. If so, how does MySQL differentiate them - do we need to explicitly give them different names inorder to identify them or

Re: Temporary Tables

2003-03-04 Thread Paul DuBois
At 23:00 + 3/4/03, Mamatha Balasubramanian wrote: Hi, I would like to know how MySQL handles multiple temporary tables? 1. Can multiple temporary tables be created at the same time? 2. If so, how does MySQL differentiate them - do we need to explicitly give them different names inorder to

Temporary Tables

2003-03-04 Thread Mamatha Balasubramanian
Hi, I would like to know how MySQL handles multiple temporary tables? 1. Can multiple temporary tables be created at the same time? 2. If so, how does MySQL differentiate them - do we need to explicitly give them different names inorder to identify them or does MySQL provide a timestamp (or use

  1   2   >