Go Back   CodingForums.com > :: Server side development > MySQL

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Old 02-09-2005, 08:24 AM   PM User | #1
ranjitcool
New Coder

 
Join Date: Feb 2005
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
ranjitcool is an unknown quantity at this point
Exclamation Urgent Help

hi
i need some help
please

i have a coloumn in my mysql table

it is called speciality

it already has a value called "good"
now i need to add more values to it without deleteing the present value

for example:- first value = GOOD
after new value inserted

it will be GOOD,OK
and so on!

remember the old value shud not be delted!

please help me
i have 3000 records to be updates liek that

urgent
bye
ranjitcool is offline   Reply With Quote
Old 02-09-2005, 09:40 PM   PM User | #2
hemebond
Senior Coder

 
Join Date: Jul 2004
Location: New Zealand
Posts: 1,315
Thanks: 0
Thanked 2 Times in 2 Posts
hemebond is an unknown quantity at this point
Code:
UPDATE `table` SET `speciality` = concat(`speciality`,",OK") WHERE `speciality` = "GOOD";
hemebond is offline   Reply With Quote
Old 02-09-2005, 10:18 PM   PM User | #3
WA
Administrator


 
Join Date: Mar 2002
Location: North America
Posts: 2,347
Thanks: 1
Thanked 12 Times in 12 Posts
WA will become famous soon enough
Hi ranjitcool:
Please read our Posting Guidelines regarding using a more descriptive subject for your thread in the future: http://www.codingforums.com/postguide.htm
__________________
- George
- JavaScript Kit- JavaScript tutorials and 400+ scripts!
- JavaScript Reference- JavaScript reference you can relate to.
WA is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:31 PM.

Home - Contact Us - Archives - Link to CF - Resources - Top 

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.