use an auto_increment column.

Or if this is during an "UPDATE"

UPDATE tbl SET col = col + 1 WHERE ..;


Allon Bendavid wrote:
> 
> Hello All-
> 
> I just read that an Insert ... Select naming the same table is not supported
> in MySQL.
> 
> What is the alternative?  What we need to do is simply insert the max of a
> column + 1 to create essentially a counter in a situation where an
> auto_increment counter would not work.
> 
> Anyone?
> 
> -Allon
> 
> ----------------------------------------------------------------------------
> Allon Bendavid                                          Imacination Software
> [EMAIL PROTECTED]                            http://www.imacination.com/
> 805-650-8153
> ----------------------------------------------------------------------------
> Visit Imacination and start selling on the Web today with Ch-Ching!
> ----------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> 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

-- 
Colin Faber
(303) 859-1491
fpsn.net, Inc.

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