答复: how to get the levels of a table or a index in Mysql 5.6?

2013-07-08 Thread 平安科技数据库技术支持部
The level is the height of a B-tree table or a B-tree index in mysql 5.6. My question is how to get the height(blevel) of a B-tree table or a B-tree index in mysql 5.6? Thanks. In oracle database,we can use the following statement to query the blevel of a index select index_name,blevel

RE: how to get the levels of a table or a index in Mysql 5.6?

2013-07-08 Thread Rick James
Or maybe the number of levels in the BTree? Rule of Thumb: logarithm base 100 > -Original Message- > From: Hartmut Holzgraefe [mailto:hart...@skysql.com] > Sent: Monday, July 08, 2013 6:38 AM > To: mysql@lists.mysql.com > Subject: Re: how to get the levels of a table or a

Re: how to get the levels of a table or a index in Mysql 5.6?

2013-07-08 Thread Hartmut Holzgraefe
On 08.07.2013 04:23, 李炜(平安科技数据库技术支持部) wrote: > how to get the levels of a table or a index in Mysql 5.6? Level? What is level supposed to be in that context? Cardinality? Or something completely different? /me confused ... -- Hartmut Holzgraefe Principal Support Engineer (EMEA) SkySQL

how to get the levels of a table or a index in Mysql 5.6?

2013-07-07 Thread 平安科技数据库技术支持部
Hi how to get the levels of a table or a index in Mysql 5.6? thanks The information in this email is confidential and may be legally privileged. If you have

Re: Ordering field names in a "DESC / DESCRIBE table" or "SHOW COLUMNS from table" command

2010-01-14 Thread Ricardo Dias Marques
Hi Peter (and MySQL list), On Wed, Jan 13, 2010 I (Ricardo Dias Marques) asked the following : >>It would be convenient for me to get a list of those fields ordered by >>field / column name. ... and on the same day, Peter Brawley kindly replied: > SELECT * > FROM information_schema.columns >

Re: Ordering field names in a "DESC / DESCRIBE table" or "SHOW COLUMNS from table" command

2010-01-13 Thread Peter Brawley
It would be convenient for me to get a list of those fields ordered by field / column name. SELECT * FROM information_schema.columns WHERE table_schema='db' AND table_name='tbl'; PB - Ricardo Dias Marques wrote: Hi all, I have a Linux server with MySQL 5.0 (5.0.67) installed. In that

Ordering field names in a "DESC / DESCRIBE table" or "SHOW COLUMNS from table" command

2010-01-13 Thread Ricardo Dias Marques
Hi all, I have a Linux server with MySQL 5.0 (5.0.67) installed. In that server, I have a database that has a table with many fields (around 60). It would be convenient for me to get a list of those fields ordered by field / column name. Unfortunately, a "DESC tablename ("DESCRIBE tablename") co

Re: better table structure: 30 records in 2 column table or one record in 30 columns table

2006-12-02 Thread Philip Mather
[EMAIL PROTECTED], hi, i'm created a 'configuration' table: create cofiguration ( config_key VARCHAR(25) NOT NULL PRIMARY KEY, config_value VARCHAR(255) NOT NULL ) ENGINE=MyISAM; I have about 30 records (store_name, store_owner, template_name, website_width, owner_address, prodcuts_per_page,..

better table structure: 30 records in 2 column table or one record in 30 columns table

2006-12-02 Thread afan
hi, i'm created a 'configuration' table: create cofiguration ( config_key VARCHAR(25) NOT NULL PRIMARY KEY, config_value VARCHAR(255) NOT NULL ) ENGINE=MyISAM; I have about 30 records (store_name, store_owner, template_name, website_width, owner_address, prodcuts_per_page,..). now i wonder is m

Re: Re: One big table or several smaller tables?

2006-11-28 Thread Dan Buettner
Daniel, you might look into the use of MERGE tables, which are essentially multipule identical MyISAM tables that look like one table. Dan On 11/27/06, Chris White <[EMAIL PROTECTED]> wrote: On Monday 27 November 2006 13:50, Daniel Smith wrote: > Assuming a decent spec server, would a simple s

Re: One big table or several smaller tables?

2006-11-27 Thread Chris White
On Monday 27 November 2006 13:50, Daniel Smith wrote: > Assuming a decent spec server, would a simple search query on a big > indexed table be quicker than searching the amount of data divided into > separate tables? I'd recommend a single large table with a DATE/DATETIME field which would be con

One big table or several smaller tables?

2006-11-27 Thread Daniel Smith
Assuming a decent spec server, would a simple search query on a big indexed table be quicker than searching the amount of data divided into separate tables? The kind of situation I have in mind is a database of events during a year, this table could top 1,000,000 enteries on the vague kind of sche

Re: InnoDB, 1 file per table or 1 BIG table?

2006-10-09 Thread Ow Mun Heng
On Mon, 2006-10-09 at 14:13 -0700, Bruce Dembecki wrote: > On Oct 9, 2006, at 7:15 AM, Ow Mun Heng wrote: > > > Hi All, > > > > Just wanted to know if it would be faster/better to implement this > > option into my.cnf > > > > innodb_file_per_table = 1 > > > > which would essentially make each tabl

Re: InnoDB, 1 file per table or 1 BIG table?

2006-10-09 Thread Ow Mun Heng
On Mon, 2006-10-09 at 15:42 -0600, James Eaton wrote: > - Original Message - > From: "Bruce Dembecki" <[EMAIL PROTECTED]> > To: > Cc: "Ow Mun Heng" <[EMAIL PROTECTED]> > How do you go about converting InnoDB databases from the single tablespace > to those using the table-per-file file o

Re: InnoDB, 1 file per table or 1 BIG table?

2006-10-09 Thread James Eaton
- Original Message - From: "Bruce Dembecki" <[EMAIL PROTECTED]> To: Cc: "Ow Mun Heng" <[EMAIL PROTECTED]> Sent: Monday, October 09, 2006 3:13 PM Subject: Re: InnoDB, 1 file per table or 1 BIG table? There are some minor performance benefits here whe

Re: InnoDB, 1 file per table or 1 BIG table?

2006-10-09 Thread Bruce Dembecki
On Oct 9, 2006, at 7:15 AM, Ow Mun Heng wrote: Hi All, Just wanted to know if it would be faster/better to implement this option into my.cnf innodb_file_per_table = 1 which would essentially make each table a file on it's own rather than have it all in 1 file. My belief is that it would be sl

Re: InnoDB, 1 file per table or 1 BIG table?

2006-10-09 Thread Dan Nelson
In the last episode (Oct 09), James Eaton said: > From: "Dan Nelson" <[EMAIL PROTECTED]> > >I don't think that the number of files has any impact on query > >speed. The advantage file-per-table gives you is the ability to > >recover unused space easily by running OPTIMIZE TABLE. With a > >single t

Re: InnoDB, 1 file per table or 1 BIG table?

2006-10-09 Thread James Eaton
- Original Message - From: "Dan Nelson" <[EMAIL PROTECTED]> To: "Ow Mun Heng" <[EMAIL PROTECTED]> Cc: Sent: Monday, October 09, 2006 9:12 AM Subject: Re: InnoDB, 1 file per table or 1 BIG table? In the last episode (Oct 09), Ow Mun Heng said: Ju

Re: InnoDB, 1 file per table or 1 BIG table?

2006-10-09 Thread Dan Nelson
In the last episode (Oct 09), Ow Mun Heng said: > Just wanted to know if it would be faster/better to implement this > option into my.cnf > > innodb_file_per_table = 1 > > which would essentially make each table a file on it's own rather > than have it all in 1 file. My belief is that it would b

InnoDB, 1 file per table or 1 BIG table?

2006-10-09 Thread Ow Mun Heng
Hi All, Just wanted to know if it would be faster/better to implement this option into my.cnf innodb_file_per_table = 1 which would essentially make each table a file on it's own rather than have it all in 1 file. My belief is that it would be slightly more advantageous compared to 1 BIG file.

Re: which is better long rows in table or two short row tables

2006-07-13 Thread Miles Thompson
At 08:54 AM 7/13/2006, abhishek jain wrote: Dear Friends, I was to create a site with quite some heavy mySQL database. I wanted to know which is better longer rows in a table or two short rows tables. When compared in terms of speed etc. Pl. help me , with this question and any other tip you

Re: which is better long rows in table or two short row tables

2006-07-13 Thread Brent Baisley
y, July 13, 2006 7:54 AM Subject: which is better long rows in table or two short row tables Dear Friends, I was to create a site with quite some heavy mySQL database. I wanted to know which is better longer rows in a table or two short rows tables. When compared in terms of speed etc. Pl. hel

which is better long rows in table or two short row tables

2006-07-13 Thread abhishek jain
Dear Friends, I was to create a site with quite some heavy mySQL database. I wanted to know which is better longer rows in a table or two short rows tables. When compared in terms of speed etc. Pl. help me , with this question and any other tip you may find can be useful to me. Thanks, Abhishek

Re: 1 table or 2?

2005-05-11 Thread Roger Baklund
Dave Shariff Yadallee wrote: I am trying to set up a chem structures table. column 1 is the key, column 2 is the description, column 3 is the structure which is a blob. In PHP the first 2 columns comes out as text as expected, but the 3rd I am trying to tell PHP please ignore this initially since t

1 table or 2?

2005-05-10 Thread Dave Shariff Yadallee - System Administrator a.k.a. The Root of the Problem
I am trying to set up a chem structures table. column 1 is the key, column 2 is the description, column 3 is the structure which is a blob. In PHP the first 2 columns comes out as text as expected, but the 3rd I am trying to tell PHP please ignore this initially since this is a blob. Should I be

Re: Do Analyze Table before Optimize Table or the other way around??

2004-08-10 Thread Egor Egorov
"Scott Fletcher" <[EMAIL PROTECTED]> wrote: > I wanna know is do I do the Analyze the table before the Optimize the > table or should I do it the other way around??? If you need to defragment the table, you can just run OPTIMIZE TABLE. -- For technical support

Do Analyze Table before Optimize Table or the other way around??

2004-08-09 Thread Scott Fletcher
I wanna know is do I do the Analyze the table before the Optimize the table or should I do it the other way around??? Thanks, FletchSOD

Need an XRef Table or Something

2004-01-30 Thread RChrismon
Here are some tables: Create Table FN ( FNunid varchar(32) not null, ..., PRIMARY KEY (FNunid) ); Create Table Dependent ( DEPunid varchar(32) not null, FNunid varchar(32) not null, ..., PRIMARY KEY (DEPunid), CONSTRAINT `0_69` FOREIG

Re: Any one can drop a table or database

2003-12-21 Thread plutoplanet
> I am new to mysql. I have installed, created a database and also some created tables. Now any one who can login to the host are able to drop the table or also the database. How do I protect it? You should read this: http://www.mysql.com/doc/en/User_Account_Management.html or maybe inst

Any one can drop a table or database

2003-12-20 Thread Mysql Mysql
Hi, I am new to mysql. I have installed, created a database and also some created tables. Now any one who can login to the host are able to drop the table or also the database. How do I protect it? -mysql - Do you Yahoo!? New Yahoo! Photos - easier uploading

Re: change the *user* table OR simply use GRANT query?

2003-10-05 Thread Paul DuBois
At 18:47 +1000 10/5/03, Wang Feng wrote: Greetings, I'm so curious about this: If a new MySQL database account need to be created, do you insert the account info to the *user* table of the *mysql* database OR do you grant the new account by the GRANT query? What are the differences andn which one

change the *user* table OR simply use GRANT query?

2003-10-05 Thread Wang Feng
Greetings, I'm so curious about this: If a new MySQL database account need to be created, do you insert the account info to the *user* table of the *mysql* database OR do you grant the new account by the GRANT query? What are the differences andn which one do you prefer? (I got some trouble whe

Re: TABLE - OR

2003-09-01 Thread Nishant
wow. yeah it works. Thanks a lot. -N. > On Mon, 01 Sep 2003 17:13:20 +0900 > Nishant <[EMAIL PROTECTED]> wrote: > > > I dont know why my brain stopped working :) > > > > I have two tables T1 and T2, both of which have a column : Seria

Re: TABLE - OR

2003-09-01 Thread Antony Dovgal
On Mon, 01 Sep 2003 17:13:20 +0900 Nishant <[EMAIL PROTECTED]> wrote: > I dont know why my brain stopped working :) > > I have two tables T1 and T2, both of which have a column : SerialNo > > Now I want to select those rows from T1 whose SerialNo is not present in > T2. > > This dont work: >

TABLE - OR

2003-09-01 Thread Nishant
I dont know why my brain stopped working :) I have two tables T1 and T2, both of which have a column : SerialNo Now I want to select those rows from T1 whose SerialNo is not present in T2. This dont work: select T1.* from table1 as T1 straight_join table2 as T2 where

Re: Large table or several tables ?

2003-02-25 Thread gregory lefebvre
gregory lefebvre wrote: Hye the list, There is my problem. I have to register about 400 large arrays (~1 lines each) in my MySQL database and I don't know which of the following choices is better. Either create a large tables as a stack, which contains all arrays Either create as many tables

Re: Large table or several tables ?

2003-02-24 Thread Tore Bostrup
2003 10:07 AM Subject: Large table or several tables ? > Hye the list, > > There is my problem. > > I have to register about 400 large arrays (~1 lines each) in my > MySQL database and I don't know which of the following choices is better. > Either create a large table

Re: Large table or several tables ?

2003-02-24 Thread Jerry
s no where near an issue, I run a app against mysql that has arrays around 250-300K at the moment and its fine. Jerry - Original Message - From: "gregory lefebvre" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 24, 2003 3:07 PM Subject: Large table

Large table or several tables ?

2003-02-24 Thread gregory lefebvre
Hye the list, There is my problem. I have to register about 400 large arrays (~1 lines each) in my MySQL database and I don't know which of the following choices is better. Either create a large tables as a stack, which contains all arrays Either create as many tables as there are arrays and

printing a table or query to a page

2002-11-18 Thread Ryan Holowaychuk
I am just starting to use mysql and I need some help on probably some simple items I have created a database and now I want to just do a simple query and display the results on the screen and that is where I am having the trouble. How do I get it to print the variables on the webpage. Thanks Rya

Re: is table or row write locked during an update ?

2002-09-11 Thread Joseph Bueno
BRACHET,STEPHAN (Non-HP-France,ex1) wrote: > Hello, > > I need to do an update on a table : > > * Something like this : * > UPDATE my_table mt > SET mt.field1 = mt.field1 + 1 > WHERE mt.id = 100 > * > > And there can have concurrent updates on this record

is table or row write locked during an update ?

2002-09-11 Thread BRACHET,STEPHAN (Non-HP-France,ex1)
Hello, I need to do an update on a table : * Something like this : * UPDATE my_table mt SET mt.field1 = mt.field1 + 1 WHERE mt.id = 100 * And there can have concurrent updates on this record. is there a risk of 2 (or more) updates done at the same time an

is table or row write locked during update ?

2002-09-09 Thread BRACHET,STEPHAN (Non-HP-France,ex1)
Hello, I need to do an update on a table : UPDATE my_table mt SET mt.field1 = mt.field1 + 1 WHERE mt.id = 100 And there can have concurrent updates on this record. is there a risk of 2 (or more) updates done at the same time and my field and the result of the query to damage the field or does a