You are here: probably a simple mysql copy multiple rows question « PHP « IT news, forums, messages
probably a simple mysql copy multiple rows question

Posted by Dave Carrera on 11/27/05 13:34

Hi All,

I have a table with a structure like this.

name
code
price

what i would like to do is copy the data in these rows to new ones in
the same table but change the

name col, keep the current data for code col and set price col to a
default value.

so if the output of my current table is

BASE 600 1.99
BASE 601 2.99

then i would like to copy these rows so that the table looks like this

BASE 600 1.99
BASE 601 2.99
NEW 600 33
NEW 601 33

i hope that makes some kind of sence...

Dave C

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация