By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,766 Members | 1,295 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,766 IT Pros & Developers. It's quick & easy.

update

P: 4
EXAMPLE:

SNO NAME

5 jony
4 rocky
1 jojo
6 raman
2 hero
3 monty


in this example if i want to arrange SNO in order (increasing) then how i can update or arrange the column SNO.

pls tell me.
Sep 13 '08 #1
Share this Question
Share on Google+
1 Reply


code green
Expert 100+
P: 1,726
in this example if i want to arrange SNO in order (increasing) then how i can update or arrange the column SNO
Expand|Select|Wrap|Line Numbers
  1. SELECT * FROM example ORDER BY sno ASC.
Expand|Select|Wrap|Line Numbers
  1. UPDATE example SET name = 'newinfo' WHERE sno = 5
for example
Sep 15 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.