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.