| От | Wim Bertels |
|---|---|
| Тема | function to filter out tokens (sql syntax lexical)? |
| Дата | |
| Msg-id | 1302804381.18226.14.camel@zwerfkat обсуждение исходный текст |
| Ответы |
Re: function to filter out tokens (sql syntax lexical)?
|
| Список | pgsql-general |
Hallo, according to http://www.postgresql.org/docs/8.4/interactive/sql-syntax-lexical.htm A token can be a key word, an identifier, a quoted identifier, a literal (or constant), or a special character symbol. I suppose these different tokens are used by the internal parser? So my questions is, is there a function one could use to filter out the specific tokes? Example: Given the statement: INSERT INTO MY_TABLE VALUES (3, 'hi there'); We can do something like: select filter_tokens($$INSERT INTO MY_TABLE VALUES (3, 'hi there');$$); With output: token | type Insert keyword into keyword my_table identifier values keyword .. 'hi there' literal or in another way with similar functionality? mvg, Wim
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера