posted 15 years ago
Hi
user create some sql query. In query contains selected coloumns,and aggregate functions etc. I need to separate selected coloumn using java.
For Ex: SELECT EMP_NAME,EMP_NO,EMP_ADDRESS,EMP_RELION,EMP_PINCODE,EMP_MOBILE,
DECODE(EMP_NAME,'TEST', EMP_NAME,EMP_NAME) from EMP;
I am trying to parse query using StringTokenizer using "," separator but not parse in properly
How to do this. Can you give me a solution for this.