• Post Reply Bookmark Topic Watch Topic
  • New Topic

Result in same order of input  RSS feed

 
saumil baxi
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am firing a Query :

From ABC where xyz In('1','2','3').

The result that i get is in any other irrespective of the Order specify in 'IN' clause.

How can I get the result in the same order mention in 'IN' Clause.

Thanks,
Saumil
 
Edvins Reisons
Ranch Hand
Posts: 364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is what the "order by" clause is for. Your query language documentation should give you the details.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!