Cursor inside SQL query
问题 In Oracle, it's possible to return a cursor inside a SQL query, using the cursor keyword, like this: select owner, table_name, cursor (select column_name from all_tab_columns where owner = allt.owner and table_name = allt.table_name) as columns from all_tables allt The questions are: Does anyone know where can I find documentation for this? Does PortgreSQL (or any other open source DBMS) have a similar feature? 回答1: It's called a CURSOR EXPRESSION, and it is documented in the obvious place,