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. How can I check which is the maximum
> (min) value I can insert into field?


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