|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
MySQL 5 - Need help with simple SQL command
Hello,
hope somebody might be able to help with what I believe should be a simple sql command. I have two fields in a table called jos_comprofilers that I need to match. The fields are called ID and USER_ID. At the moment, they contain different values. What I need is an sql command that will duplicate all the user values in USER_ID and dump those values into the corresponding record in ID. Can that be done? Any help would be appreciated. JR |
|
#2
|
||||
|
||||
|
so you want to copy the values of the USER_ID column and put them into the ID column of the same table?
Off the cuff - maybe something like Code:
UPDATE table SET ID = (SELECT USER_ID from table)
__________________
life is a game.... Have fun ----------------------------- http://www.phpwomen.org strength in unity PHPCommunity IRC #phpc on freenode |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > MySQL 5 - Need help with simple SQL command |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|