GeekInterview.com
Series: Subject: Topic:
Question: 17 of 214

how to insert a column in middle order?

hi,i have 1 table contain 2 column if i add a new column it default stored in last column but my recruitment adding the new column in middle of the order so can any one explain
Asked by: thoufik | Member Since Oct-2011 | Asked on: Oct 28th, 2011

View all questions by thoufik

Showing Answers 1 - 3 of 3 Answers
ajay

Answered On : Dec 6th, 2011

We can do it by using the ORDER BY clause.

  
Login to rate this answer.
Chandu

Answered On : Dec 6th, 2011

You can use BEFORE < col name >
or
AFTER < col name >
or
< col name > 2

Here 2 is the position that the new col is about to place.

  
Login to rate this answer.
preethi

Answered On : Dec 7th, 2011

Mr. Chandu can you give some example code. I am not clear with the code you have posted.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.