Re: sql: create duplicate record

2002-07-16 Thread Victoria Reznichenko

Aman,
Monday, July 15, 2002, 8:35:16 PM, you wrote:

AR I want to write sql query to duplicate a row. It has a PRI key called ID.
AR The MySQL database looks like

AR IDNameAddress
AR 345  Aman42, sb
AR 346
AR 347...

AR I want to duplicate the ID=345.

AR Any suggestions ?

You can have duplicate values in the columns that specified as PRIMARY
KEY or UNIQUE.




-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   ___/   www.mysql.com




-
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




Re: Re: sql: create duplicate record

2002-07-16 Thread Victoria Reznichenko


AR I want to write sql query to duplicate a row. It has a PRI key called ID.
AR The MySQL database looks like

AR IDNameAddress
AR 345  Aman42, sb
AR 346
AR 347...

AR I want to duplicate the ID=345.

AR Any suggestions ?

VR You can have duplicate values in the columns that specified as PRIMARY
VR KEY or UNIQUE.

Oops! Sorry, my typo :(
I mean you can't have duplicate values ..



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   ___/   www.mysql.com




-
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




sql: create duplicate record

2002-07-15 Thread Aman Raheja

Hi
I want to write sql query to duplicate a row. It has a PRI key called ID.
The MySQL database looks like

IDNameAddress
345  Aman42, sb
346
347...

I want to duplicate the ID=345.

Any suggestions ?

Thanks in advance.
Aman


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


-
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