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

I think you have to parse the string you get from "show columns from
<table> like '<field name';" ...

Greetings,
Thomas Karcher

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to