|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Database Discussion Forum This is the place to find help resolving those nagging questions you have about implementing and using all kinds of databases. Need help writing a query? Need an opinion on Oracle? Post here! |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello, maybe someone on this forum can help me solve this issue.
I posted this on the OSComm forusm: Adding Model Number via MySQL - osCommerce Community Support Forums Essentially need to populate the product_model field with a unique numerical value. Is there a MySQL DB query I can run that will do this for me? Any help would be appreciated. Rob |
|
|||
|
What you have listed appears to work for 1 item, but not for all of them.
Is it possible to copy values from one column (product_id) to another column (product_model)? But do it across all 2600 products in the dB? Thanks!
__________________
Rob |
|
|||
|
Sorry my MySQL is not very extensive:
UPDATE product_table SET product_model = ??? Would I have to do that query for every single line (2600 of them?) or would that update each of them with a unique value?
__________________
Rob |
|
||||
|
No.
Apologies. I've just tested my post. The MySQL statement should be UPDATE product_table SET product_model = product_id; Do this once and it will alter all records. Last edited by Uncle Dog; 08-01-2009 at 06:45 PM. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP Sticky fields | overflo | Web Programming Discussion Forum | 5 | 11-13-2008 05:09 AM |
| Need Your Eyes - Puzzle Table Fields | freetraff | Graphics & Design Discussion Forum | 1 | 12-10-2007 07:35 PM |
| Name of file relevant in some non competitive fields | begabloomers | Search Engine Optimization Forum | 0 | 09-04-2006 03:11 PM |
| Mandatory fields in a form (formmail) | aventvoy | Web Programming Discussion Forum | 4 | 11-17-2005 01:45 AM |
| cannot get 12 fields back, only 3 | bufhal | Database Discussion Forum | 9 | 05-11-2004 05:14 PM |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |