using global sql parser (gsp)
for extracting column and sorting type from order sql query and extract and or from where condition
SELECT employee_id, dept, name, age, salary
FROM employee_info
WHERE dept = 'Sales' and ID=1
ORDER BY salary, age DESC,ID;
I can extracting column name but can extract order type
1- how can extract order type?
2- how can extract and , or from where sql?
If pSqlstmt is gsp_selectStatement * then you can do something like this: