homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Databases
Forum Library, Charter, Moderator: open

Databases Forum

MySQL Update, need to rise data in second column field list.

Msg#: 4099957 posted 11:03 pm on Mar 17, 2010 (gmt 0)

I have two columns in my table.

1. username
2. data

In data column there is data like this

tptes 2190110 134 350 1220 175 255 400 270 0 180 100 40 735 100

I want to update by specifying username and how much to add to third number from left.

For example I want to add 50 then value 134 would become into 184. Also all other values stay untouched.

Please note that these values are always different to every user.



WebmasterWorld Senior Member 5+ Year Member

Msg#: 4099957 posted 1:34 am on Mar 18, 2010 (gmt 0)

Why are you storing all those values in one column?

It would be much easier if you stored them in separate columns which are numeric.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Databases
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved