SELECT RTRIM(XMLAGG(XMLELEMENT(E,colname,',').EXTRACT('//text()') ORDER BY colname).GetClobVal(),',') AS LIST
FROM tablename;
This will return a clob value, so no limit on rows.
More Related Contents:
- How to create id with AUTO_INCREMENT on Oracle?
- When do I need to use a semicolon vs a slash in Oracle SQL?
- LISTAGG in Oracle to return distinct values
- SQL Error: ORA-00933: SQL command not properly ended
- CASE vs. DECODE
- DATEDIFF function in Oracle [duplicate]
- WHERE IN condition not accepting String value
- What is the difference between Views and Materialized Views in Oracle?
- Pivoting of data using two columns
- Check if current date is between two dates Oracle SQL
- ORA-00907: missing right parenthesis
- How do I specify date literal when writing SQL query from SQL Server that is linked to Oracle?
- Unordered results in SQL
- Oracle Dynamic Pivoting
- Foreign Key Creation issue in Oracle
- create custom function for date difference excluding weekends and holidays in oracle sql
- What is it exactly a BLOB in a DBMS context
- Custom Order in Oracle SQL
- Is there a version control system for database structure changes?
- oracle sql: update if exists else insert [duplicate]
- Oracle: Updating a table column using ROWNUM in conjunction with ORDER BY clause
- Compare Strings ignoring accents in SQL (ORACLE)
- Return number from Oracle Select statement after parsing date
- How do you interpret a query’s explain plan?
- Oracle DB: How can I write query ignoring case?
- ORA-00942: table or view does not exist (works when a separate sql, but does not work inside a oracle function)
- How to call Oracle MD5 hash function?
- Oracle Convert TIMESTAMP with Timezone to DATE
- SQL Server equivalent of WM_CONCAT function [duplicate]
- Oracle: ‘= ANY()’ vs. ‘IN ()’