Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / May 2008

Tip: Looking for answers? Try searching our database.

Hi,Could someone help write a regex parsing sql str for me:)

Thread view: 
jimmy - 23 May 2008 03:50 GMT
the sql :  select  * from (select * from tbl) a where c1 = 1  order
by   c2        desc,  c3 asc

I want to parse the 'order by' clause to get the column-order pair,
the result would be looks like:

['c2','c3']     ['desc','asc']

Greatly appreciated!
Andrew Thompson - 23 May 2008 04:28 GMT
Please refrain from multi-posting.

As an aside.  What do you have so far in
your regex?  What have you tried?

If the answer to both is 'nothing', then
perhaps what you need is a consultant.

(X-post to c.l.j.p./h. w/ f-u to c.l.j.p. only.)

--
Andrew T.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.