Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a table and the table having many fields


like name ,username ,designation


i want to replace its value from new values
Posted
Comments
BulletVictim 5-Nov-13 1:33am    
That would be a simple UPDATE Table SET ColumnValue = value WHERE Primary key = some value

1 solution

Check below sample and change it according to your scenario.

SQL
UPDATE Customers
SET ContactName='Alfred Schmidt', City='Hamburg'
WHERE CustomerName='Alfreds Futterkiste';


For more info : SQL UPDATE Statement

I hope this will help to you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900