(1) 排序控制
select TABLE_NAME, TABLESPACE_NAME from user_tables order by TABLE_NAME $ordertype$
Where the user input ordertype ASC, DESC. On this keyword, use the $ordertype: SQLKEYWORD$ replacement $ ordertype $.
(2)排序字段
sql statement metadata. If the sql statement, there is user input metadata. Table name, field names and so on.
For example the following sql:
select TABLE_NAME, TABLESPACE_NAME from user_tables order by $ orderByColumn $.
Which is the field in the database orderByColumn. Of this metadata, use: $ orderByColumn: METADATA $ replacement $ orderByColumn $.