why the max value of innodb_buffer_pool_size is always 4G

2007-08-13 Thread wangchunning45
I install MySQL on Linux 2.6.9-52bs #2 x86_64 x86_64 x86_64 GNU/Linux, 16G memory with followiing step: 1. ./configure --prefix=/home/mysql/mysql2. make3. make install I set innodb_pool_buffer_size = 8G in my.cnf, but when I use "show variables like 'innodb_buffer_pool_size';" the result is : +

Re: Problems finding the MAX value

2005-11-04 Thread SGreen
How it works... "KEVIN ZEMBOWER" <[EMAIL PROTECTED]> wrote on 11/04/2005 12:40:50 PM: > Man, you're awesome. Only two typos in the whole procedure. However, > for the life of me, I'm puzzled over how it works. If you have more > patience can you explain? > > Correct query (table is singular, no

Re: Problems finding the MAX value

2005-11-04 Thread KEVIN ZEMBOWER
Man, you're awesome. Only two typos in the whole procedure. However, for the life of me, I'm puzzled over how it works. If you have more patience can you explain? Correct query (table is singular, not PHPAUCTIONS_...): CREATE TEMPORARY TABLE tmpWinners SELECT auction, max(bid) as winningbid FRO

Re: Problems finding the MAX value

2005-11-04 Thread KEVIN ZEMBOWER
Shawn, thank you for your complete answer. I'm still working through your first post. I apologize for not noticing this FAQ. I didn't take it into account because I thought it only applied to MySQL 5 and I'm using 4.0.24. Thanks, again. I'll be in touch regarding your first post as I work with y

Re: Problems finding the MAX value

2005-11-04 Thread SGreen
[EMAIL PROTECTED] wrote on 11/04/2005 11:22:35 AM: > This is such a FAQ that they put the answer in the manual: > http://dev.mysql.com/doc/refman/5.0/en/index.html > OOPS! I copied the wrong link. It should have been: http://dev.mysql.com/doc/refman/5.0/en/example-maximum-column-group-row.html

Re: Problems finding the MAX value

2005-11-04 Thread SGreen
"KEVIN ZEMBOWER" <[EMAIL PROTECTED]> wrote on 11/04/2005 11:05:05 AM: > My organization runs an online auction on our intranet server for > the United Way. I'm having a hard time printing out a list of the > winning bidders (I'm under a lot of pressure; the baked goods are > getting stale). >

Problems finding the MAX value

2005-11-04 Thread KEVIN ZEMBOWER
My organization runs an online auction on our intranet server for the United Way. I'm having a hard time printing out a list of the winning bidders (I'm under a lot of pressure; the baked goods are getting stale). In these examples, I've just printed out my bidder's first names, to protect thei

Re: How to select the max value

2005-04-13 Thread Mauricio Pellegrini
age - > From: "Mauricio Pellegrini" <[EMAIL PROTECTED]> > To: "MySql List" > Sent: Tuesday, April 12, 2005 7:35 PM > Subject: How to select the max value > > > > Hi, > > I need to select the max value from a set of records but I also need

Re: How to select the max value

2005-04-12 Thread Daniel Kasak
Daniel Kasak wrote: >Mauricio Pellegrini wrote: > > > >>Hi, >>I need to select the max value from a set of records but I also need the >>primary key for that record. >> >>The problem is that the record id may not be the same as the record max >>

Re: How to select the max value

2005-04-12 Thread Rhino
Rhino - Original Message - From: "Mauricio Pellegrini" <[EMAIL PROTECTED]> To: "MySql List" Sent: Tuesday, April 12, 2005 7:35 PM Subject: How to select the max value > Hi, > I need to select the max value from a set of records but I also need the &

Re: How to select the max value

2005-04-12 Thread Daniel Kasak
Mauricio Pellegrini wrote: >Hi, >I need to select the max value from a set of records but I also need the >primary key for that record. > >The problem is that the record id may not be the same as the record max >value for the column as in the following example: > >

How to select the max value

2005-04-12 Thread Mauricio Pellegrini
Hi, I need to select the max value from a set of records but I also need the primary key for that record. The problem is that the record id may not be the same as the record max value for the column as in the following example: Table_x Id x_col date_col 1 1 2005-04-11 2

Re: [MySQL] Using the MAX() value in WHERE clause

2004-04-28 Thread Michael Stassen
jim wrote: One solution would be to use a variable: SELECT @latest:= MAX(dateCreated); Here I am getting the errors: mysql> SELECT @latest:= MAX(dateCreated); ERROR 1054: Unknown column 'dateCreated' in 'field list' mysql> SELECT @latest:= MAX(user.dateCreated); ERROR 1109: Unknown table 'use

Re: [MySQL] Using the MAX() value in WHERE clause

2004-04-28 Thread jim
> jim wrote: > > > Hi, > > > > The task is to find users whose accounts have not been validated for the > > last 10 days. This SELECT accomplishes that: > > > > SELECT * FROM user WHERE validated LIKE 'N' AND dateCreated <= > > DATE_SUB(CURDATE(), INTERVAL 10 DAY) > > > > But, using curdate()

Re: [MySQL] Using the MAX() value in WHERE clause

2004-04-28 Thread Michael Stassen
jim wrote: Hi, The task is to find users whose accounts have not been validated for the last 10 days. This SELECT accomplishes that: SELECT * FROM user WHERE validated LIKE 'N' AND dateCreated <= DATE_SUB(CURDATE(), INTERVAL 10 DAY) But, using curdate() is dangerous. What if the system time is

[MySQL] Using the MAX() value in WHERE clause

2004-04-28 Thread jim
Hi, The task is to find users whose accounts have not been validated for the last 10 days. This SELECT accomplishes that: SELECT * FROM user WHERE validated LIKE 'N' AND dateCreated <= DATE_SUB(CURDATE(), INTERVAL 10 DAY) But, using curdate() is dangerous. What if the system time is messed up?

Re: Updating a record with MAX(value)

2003-07-25 Thread Victoria Reznichenko
Vikram Vaswani <[EMAIL PROTECTED]> wrote: > > Is there a way to update the record with maximum value in a table with > another value? > > I am trying this: > > mysql> update services set sfee = 1 where sfee = max(sfee); > Query OK, 0 rows affected (0.06 sec) > Rows matched: 0 Changed: 0 Warnin

Updating a record with MAX(value)

2003-07-24 Thread Vikram Vaswani
Hi all, Is there a way to update the record with maximum value in a table with another value? I am trying this: mysql> update services set sfee = 1 where sfee = max(sfee); Query OK, 0 rows affected (0.06 sec) Rows matched: 0 Changed: 0 Warnings: 0 But it doesn't make any changes to the data.

RE: Selecting max value from sets

2003-01-10 Thread Anton Zavrin
Slish, nu ti I nazvalsia, Egor Egorov, eshe bi Vasey Pupkinim nazvalsia-bi hahahahahaha ;-) Best Regards, Anton -Original Message- From: Egor Egorov [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 9:38 AM To: [EMAIL PROTECTED] Subject: re: Selecting max value from sets

re: Selecting max value from sets

2003-01-10 Thread Egor Egorov
he table > Don4 //Don't highest value in the table > > So I'm looking for distinct maximums. > Is it possible to do this *with a single query* in MySQL? I've tried a > number of things and nothing comes close. SELECT Name, MAX(Value) FROM Value_Pairs GRO

Re: Selecting max value from sets

2003-01-10 Thread Kent Vilhelmsen
On Thu, 2003-01-09 at 22:06, Benjamin Dixon wrote: > > Hi all, > > I'm trying to figure out a way to select a group of maximums from a set > such that each value pair's greatest value is in the result set. For > example, let's say I have this table Value_Pairs: > > Name | Value > >

Selecting max value from sets

2003-01-09 Thread Benjamin Dixon
Hi all, I'm trying to figure out a way to select a group of maximums from a set such that each value pair's greatest value is in the result set. For example, let's say I have this table Value_Pairs: Name | Value Bob1 Joe7 Bob2 Don3 Don4 Bob6 The result I wan

re: Re: AUTO_INCREMENT max value...

2002-10-10 Thread Victoria Reznichenko
Bill, Wednesday, October 09, 2002, 6:55:26 PM, you wrote: BH> Nope - nothing close to 4GB or even 1GB... My greatest data file size BH> is 80MB. The largest table is 1.7 million rows. I have databases with BH> more and bigger files. I think my problem is that the table having the BH> proble

Re: AUTO_INCREMENT max value...

2002-10-09 Thread Keith C. Ivey
On 9 Oct 2002, at 11:55, Bill Hess wrote: > One would think that the value would not top out until 2^31 > since I have it defined as a normal INT. I guess I can make it a > BIGINT, but I think I will run into a problem eventually > regardless how big I make the field... Since the limit you're h

Re: AUTO_INCREMENT max value...

2002-10-09 Thread Bill Hess
"Keith C. Ivey" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Tuesday, October 08, 2002 4:52 PM > Subject: Re: AUTO_INCREMENT max value... > > > >>Not really getting errors but getting warnings when inserting > > records > >>

Re: AUTO_INCREMENT max value...

2002-10-09 Thread Ken Menzel
, October 08, 2002 4:52 PM Subject: Re: AUTO_INCREMENT max value... > Not really getting errors but getting warnings when inserting records > and having duplicate values since the primary key is the one that is > auto incremented... > > Keith C. Ivey wrote: > > On 8 Oct 2002, at 12:23

Re: AUTO_INCREMENT max value...

2002-10-09 Thread Joseph Bueno
Bill Hess wrote: > Hello all... > > What is the maximum value of an AUTO_INCREMENT field? I am currently > running into a maximum value of 296,995,724 on Solaris 8 using MySQL > 3.23.42 - the field has been defined as an INT(11), which should be able > to handle a value bigger than what I am see

Re: AUTO_INCREMENT max value...

2002-10-08 Thread Bill Hess
Not really getting errors but getting warnings when inserting records and having duplicate values since the primary key is the one that is auto incremented... Keith C. Ivey wrote: > On 8 Oct 2002, at 12:23, Bill Hess wrote: > > >>What is the maximum value of an AUTO_INCREMENT field? I am cur

Re: AUTO_INCREMENT max value...

2002-10-08 Thread gerald_clark
Did you try unsigned int? Bill Hess wrote: > Hello all... > > What is the maximum value of an AUTO_INCREMENT field? I am currently > running into a maximum value of 296,995,724 on Solaris 8 using MySQL > 3.23.42 - the field has been defined as an INT(11), which should be > able to handle a v

Re: AUTO_INCREMENT max value...

2002-10-08 Thread Keith C. Ivey
On 8 Oct 2002, at 12:23, Bill Hess wrote: > What is the maximum value of an AUTO_INCREMENT field? I am currently > running into a maximum value of 296,995,724 on Solaris 8 using MySQL > 3.23.42 - the field has been defined as an INT(11), which should be able > to handle a value bigger than wh

AUTO_INCREMENT max value...

2002-10-08 Thread Bill Hess
Hello all... What is the maximum value of an AUTO_INCREMENT field? I am currently running into a maximum value of 296,995,724 on Solaris 8 using MySQL 3.23.42 - the field has been defined as an INT(11), which should be able to handle a value bigger than what I am seeing - The DuBois MySQL boo

Re: Pretty Simple MAX Value question...

2002-05-09 Thread Arjen Lentz
At 16:30 -0400 5/9/02, Andrew Kuebler wrote: > I want to select say 100 of 1,000 records and get the highest value for > "id" in that query, however the MAX command always gives me the MAX for > the whole table, not just my query. > > Here's my expression: > SELECT MAX(id) FROM table WHERE DATE =

Re: Pretty Simple MAX Value question...

2002-05-09 Thread Paul DuBois
At 16:30 -0400 5/9/02, Andrew Kuebler wrote: >I want to select say 100 of 1,000 records and get the highest value for >"id" in that query, however the MAX command always gives me the MAX for >the whole table, not just my query. > >Here's my expression: > >SELECT MAX(id) FROM table WHERE DATE = '20

RE: Pretty Simple MAX Value question...

2002-05-09 Thread Gurhan Ozen
al Message- From: Andrew Kuebler [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 09, 2002 4:31 PM To: [EMAIL PROTECTED] Subject: Pretty Simple MAX Value question... I want to select say 100 of 1,000 records and get the highest value for "id" in that query, however the MAX command always

RE: Pretty Simple MAX Value question...

2002-05-09 Thread Max Anderson
SELECT MAX(id) FROM (SELECT MAX(id) FROM table WHERE DATE = '20020509' LIMIT 100) Dunno if this works in MySQL, I can't access a MySQL database from here to test it out. This should return the value that you want but I would be interested to learn the usefulness of runni

Pretty Simple MAX Value question...

2002-05-09 Thread Andrew Kuebler
I want to select say 100 of 1,000 records and get the highest value for "id" in that query, however the MAX command always gives me the MAX for the whole table, not just my query. Here's my expression: SELECT MAX(id) FROM table WHERE DATE = '20020509' LIMIT 100 No matter what, I will always get

Re: Max value

2002-03-30 Thread Benjamin Pflugmann
Hi. This is the documented behaviour. For details, see http://www.mysql.com/doc/G/r/Group_by_functions.html How to deal with this is discussed in the tutorial section: http://www.mysql.com/doc/e/x/example-Maximum-column-group-row.html Bye, Benjamin. On Sat, Mar 30, 2002 at 09:24:26PM

Max value

2002-03-30 Thread RBRoa
Everyone, Is this a bug or somethingi am using the latest version of MySQL server and it works fine and convincing...but I observe that if I use the MAX() functioni got this I include max() function to my select query Ex.. select max(A),B,C from table_name group by A; the result i

Re: max. value from select statement

2001-09-03 Thread Rodney Broom
From: Mike Yuen <[EMAIL PROTECTED]> > The query I have is: select max(mid) from mboard; > BUT I tried the following in PHP and it doesn't work: > > $myquery = "SELECT max(mid) FROM mboard"; > $myresult = mysql_query($myquery); > $row = mysql_fetch_object($myresult); > print "$row->mid is result

max. value from select statement

2001-09-03 Thread Mike Yuen
I have a table as such where mid is my auto increment primary key: TABLE: mboard mid 2 3 4 5 I'm doing this in combination with PHP4. What I want to do is build a query that will allow me to get the largest mid from the table (mboard) above. The query I have is: select max(mid) from mboard; BUT

Re: Q: max value?

2001-06-12 Thread Thomas Karcher
Hi, > SELECT max(fieldname) FROM table; I think with this you get the CURRENT max value of entries existing in the table, but not the REALLY maximum value you are able to insert. > > Does anybody knows how can I check whether the max value in some > > database's > >

RE: Q: max value?

2001-06-11 Thread Chris Bolt
SELECT max(fieldname) FROM table; > Hi! > > Does anybody knows how can I check whether the max value in some > database's > field has > been reached? > For example, I have MEDIUMINT column and I want to reset its value once it > reaches its maximum, that is 8388607.

FW: Q: max value?

2001-06-11 Thread Toth Dalibor
Hi! Does anybody knows how can I check whether the max value in some database's field has been reached? For example, I have MEDIUMINT column and I want to reset its value once it reaches its maximum, that is 8388607. How can I check which is the maximum (min) value I can insert into field? Bye!

selecting records where max value

2001-05-30 Thread La Rocca Network, Inc.
Hi ! is there any way to do this ? SELECT T2.monedaID, T2.fecha, T1.descripcion, T2.compra, T2.venta FROM UYMonedasBCU T1, UYMonedasCotizaInter T2 WHERE (T2.fecha = (SELECT DISTINCT MAX (T3.fecha )FROM uymonedascotizainter T3 )) AND (T1.forma = 'Billete') AND (T2.monedaID = T1.id ) The matt

Re: Max value

2001-02-02 Thread Angela
age- > > From: Roman Arefiev [mailto:[EMAIL PROTECTED]] > > Sent: Friday, February 02, 2001 10:25 AM > > To: [EMAIL PROTECTED] > > Subject: Max value > > > > > > Hello, I'm a newbie in MySql, it would be great if you can help me .. > > the

RE: Max value

2001-02-02 Thread Roger Ramirez
http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#Gro up_by_functions max(x) works with the group by clause. > -Original Message- > From: Roman Arefiev [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 02, 2001 10:25 AM > To: [EMAIL PROTECTED] &g

Max value

2001-02-02 Thread Roman Arefiev
Hello, I'm a newbie in MySql, it would be great if you can help me .. the problem is : I have a Mysql table like: create table users (user varchar(20), debt int(10)); How can I select user with the greatest value of debt ? I have this function (max) in MS Access database and it works perfectly.