Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > Putting it Together > Databases

Reply
 
LinkBack Thread Tools
Old January 24th, 2007, 09:26 AM   #1
New Member
 

Join Date: Aug 2006
Location: United States
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 webrodie is on a distinguished road
Need Help with SQL Update

I am needing an sql statement that will add one zero in front of the rest of the numbers that are already in a column row. For example I need all the data in a single column to be changed from "12345" to "012345".

My table name is "associate_list" and the column name is "disc". I need all the records to be updated for that column.

Thanks!!
webrodie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 11th, 2007, 01:20 PM   #2
Reputable Member
SuperMember
 
TheSealPortalTeam's Avatar
 

Join Date: May 2007
Location: Buffalo
Posts: 344
Blog Entries: 16
Thanks: 33
Thanked 1 Time in 1 Post
Rep Altering Power: 0 TheSealPortalTeam is on a distinguished road
Re: Need Help with SQL Update

Firts read the value then update it by a string like
READ * from associate_list

dim intPrevNumber as int16 = reader.read("disc")

UPDATE ... dec='0" & intPrevNumber &' ...."
TheSealPortalTeam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
help , set , sql , update


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Update Help robukni PHP 2 May 17th, 2007 02:14 AM


Search Engine Optimization by vBSEO 3.2.0 RC8