Click here to Skip to main content
15,894,825 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi i am a fresher help me...

S_ID,Name,Subject,Mark1,Mark2 these are my fields,, i want to update this.. i need query for updating,,my table name is tb_studentinfo.. and also give VB.net codings
Posted
Comments
deepakdynamite 14-Nov-11 0:29am    
What do you want to update ? Is it fieldname or table name ?

You can use query similar to this.
SQL
Update tb_studentinfo set Name='anyName',Subject='anySubject',Mark1=100,Mark2=79 where S_ID=10

Still you need to learn how to do this.
Google[^] for a good book/article.
http://www.perfectxml.com/sybex/Files/2878ch06.pdf[^]
 
Share this answer
 
Actually you need to learn instead of getting answer for this question. Browse SQL Tutorial @ w3schools[^]

Try this

SQL UPDATE Statement[^]
 
Share this answer
 
SQL
Update tb_studentinfo set Name='YOUR CHOICE',Subject='YOUR CHOICE',Mark1='YOUR CHOICE',Mark2='YOUR CHOICE' where S_ID=102
 
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