Hi every body
I want to know if there is some easy way to duplicate an entire row, in one
table, only
changing one field?
Somethig like this,
this is the original table:
+---------------+---------------------+----------------+-------------+
| ReleaseNumber | ReleaseDate | PrositeVersion | Type |
+---------------+---------------------+----------------+-------------+
| 1 | 2000-05-17 01:01:01 | 999.99 | Pre-release |
| 2 | 2000-09-25 01:01:01 | 999.99 | Pre-release |
+---------------+---------------------+----------------+-------------+
i want to duplicate the second row changing the value of third field on this
table, to get this:
+---------------+---------------------+----------------+-------------+
| Serial | ReleaseNumber | ReleaseDate | PrositeVersion | Type |
+---------------+---------------------+----------------+-------------+
| 1 | 1 | 2000-05-17 01:01:01 | 999.99 |
Pre-release |
| 2 | 2 | 2000-09-25 01:01:01 | 999.99 |
Pre-release |
| 3 | 2 | 2000-09-25 01:01:01 | 179.52 |
Pre-release |
+---------------+---------------------+----------------+-------------+
Serial is an autoincremental field.
Thanks in advances
---------------------------------------------------------------------
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