<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Home</title><link>https://sourceforge.net/p/cursor2lob/wiki/Home/</link><description>Recent changes to Home</description><atom:link href="https://sourceforge.net/p/cursor2lob/wiki/Home/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 28 May 2016 13:31:08 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/cursor2lob/wiki/Home/feed" rel="self" type="application/rss+xml"/><item><title>Home modified by Michael</title><link>https://sourceforge.net/p/cursor2lob/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v17
+++ v18
@@ -107,12 +107,12 @@
 begin
   open l_cursor for select * from emp e;
   l_clob := cursor2lob.to_clob(
-         l_cursor, /* Cursor */
-         chr(10),  /* Row Separator */
-         ';',      /* Column Separator */
-         '"',      /* Delimiter */
-         1         /* 1 -&amp;gt; First row includes column names */
-       );
+                  l_cursor, /* Cursor */
+                  chr(10),  /* Row Separator */
+                  ';',      /* Column Separator */
+                  '"',      /* Delimiter */
+                  1         /* 1 -&amp;gt; First row includes column names */
+                );
 end;
 ~~~

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael</dc:creator><pubDate>Sat, 28 May 2016 13:31:08 -0000</pubDate><guid>https://sourceforge.net944e331dd93aaf7e0b1dd32b1a8bff3d9ce37b42</guid></item><item><title>Home modified by Michael</title><link>https://sourceforge.net/p/cursor2lob/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v16
+++ v17
@@ -98,6 +98,24 @@
 | 30 | SALES | 7499••••ALLEN•••••1600••••↵&lt;br/&gt;7521••••WARD••••••1250••••↵&lt;br/&gt;7654••••MARTIN••••1250••••↵&lt;br/&gt;7698••••BLAKE•••••2850••••↵&lt;br/&gt;7844••••TURNER••••1500••••↵&lt;br/&gt;7900••••JAMES•••••950•••••↵ |
 | 40 | OPERATIONS | *(null)* |

+What about PL/SQL? The calls are nearly the same - the only difference is the creation of the cursor since the cursor() function is a SQL-only function. The first example in PL/SQL would look like this:
+
+~~~
+declare
+  l_cursor sys_refcursor;
+  l_clob  clob;
+begin
+  open l_cursor for select * from emp e;
+  l_clob := cursor2lob.to_clob(
+         l_cursor, /* Cursor */
+         chr(10),  /* Row Separator */
+         ';',      /* Column Separator */
+         '"',      /* Delimiter */
+         1         /* 1 -&amp;gt; First row includes column names */
+       );
+end;
+~~~
+
 Limitations
 ---
 Cursor2LOB fetches the data as VARCHAR2s or as CLOBs. If a column type is not of these two then an implicit conversion to VARCHAR2 is attempted using the default NLS and format mask settings of your session. If you want to get a specific format for your NUMBERs or DATEs etc. then you'll have to use the TO_CHAR function and provide a format mask.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael</dc:creator><pubDate>Sat, 28 May 2016 13:30:22 -0000</pubDate><guid>https://sourceforge.net1e86236d8f1ef3c8e727f20476b3dc4176ed61d3</guid></item><item><title>Home modified by Michael</title><link>https://sourceforge.net/p/cursor2lob/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v15
+++ v16
@@ -100,7 +100,7 @@

 Limitations
 ---
-Cursor2LOB fetches the data as VARCHAR2s or as CLOBs. If a column type is not of these two then an implicit conversion to VARCHAR2 is attempted using the default NLS and format mask settings of you session. If you want to get a specific format for your NUMBERs or DATEs etc. then you'll have to use the TO_CHAR function and provide a format mask.
+Cursor2LOB fetches the data as VARCHAR2s or as CLOBs. If a column type is not of these two then an implicit conversion to VARCHAR2 is attempted using the default NLS and format mask settings of your session. If you want to get a specific format for your NUMBERs or DATEs etc. then you'll have to use the TO_CHAR function and provide a format mask.

 It's not possible to fetch object types, nested tables or BLOBs as such because there is no reasonable implicit conversion of these types to a VARCHAR2. If you want to get those into your LOB, you'll have to convert them yourself to a VARCHAR2 or CLOB explicitly.

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael</dc:creator><pubDate>Thu, 26 May 2016 17:37:18 -0000</pubDate><guid>https://sourceforge.net975d4af5e299ac719f151cc5c34ff77ca5c83026</guid></item><item><title>Home modified by Michael</title><link>https://sourceforge.net/p/cursor2lob/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v14
+++ v15
@@ -98,5 +98,11 @@
 | 30 | SALES | 7499••••ALLEN•••••1600••••↵&lt;br/&gt;7521••••WARD••••••1250••••↵&lt;br/&gt;7654••••MARTIN••••1250••••↵&lt;br/&gt;7698••••BLAKE•••••2850••••↵&lt;br/&gt;7844••••TURNER••••1500••••↵&lt;br/&gt;7900••••JAMES•••••950•••••↵ |
 | 40 | OPERATIONS | *(null)* |

+Limitations
+---
+Cursor2LOB fetches the data as VARCHAR2s or as CLOBs. If a column type is not of these two then an implicit conversion to VARCHAR2 is attempted using the default NLS and format mask settings of you session. If you want to get a specific format for your NUMBERs or DATEs etc. then you'll have to use the TO_CHAR function and provide a format mask.
+
+It's not possible to fetch object types, nested tables or BLOBs as such because there is no reasonable implicit conversion of these types to a VARCHAR2. If you want to get those into your LOB, you'll have to convert them yourself to a VARCHAR2 or CLOB explicitly.
+
 [[members limit=20]]
 [[download_button]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael</dc:creator><pubDate>Thu, 26 May 2016 17:36:09 -0000</pubDate><guid>https://sourceforge.neta1f475dde19e66d7c59de9df8f227b429856a0c8</guid></item><item><title>Home modified by Michael</title><link>https://sourceforge.net/p/cursor2lob/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v13
+++ v14
@@ -95,7 +95,7 @@
 | ------ | ------ | ------ |
 | 10 | ACCOUNTING | 7782••••CLARK•••••2450••••↵&lt;br/&gt;7839••••KING••••••5000••••↵&lt;br/&gt;7934••••MILLER••••1300••••↵ |
 | 20 | RESEARCH | 7369••••SMITH•••••800•••••↵&lt;br/&gt;7566••••JONES•••••2975••••↵&lt;br/&gt;7788••••SCOTT•••••3000••••↵&lt;br/&gt;7876••••ADAMS•••••1100••••↵&lt;br/&gt;7902••••FORD••••••3000••••↵ |
-| 30 | SALES | 7499;ALLEN;1600↵&lt;br/&gt;7521;WARD;1250↵&lt;br/&gt;7654;MARTIN;1250↵&lt;br/&gt;7698;BLAKE;2850↵&lt;br/&gt;7844;TURNER;1500↵&lt;br/&gt;7900;JAMES;950↵
+| 30 | SALES | 7499••••ALLEN•••••1600••••↵&lt;br/&gt;7521••••WARD••••••1250••••↵&lt;br/&gt;7654••••MARTIN••••1250••••↵&lt;br/&gt;7698••••BLAKE•••••2850••••↵&lt;br/&gt;7844••••TURNER••••1500••••↵&lt;br/&gt;7900••••JAMES•••••950•••••↵ |
 | 40 | OPERATIONS | *(null)* |

 [[members limit=20]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael</dc:creator><pubDate>Thu, 26 May 2016 17:29:05 -0000</pubDate><guid>https://sourceforge.net17d9997c5178a08c97cf75fcb0d856febcbe5cfc</guid></item><item><title>Home modified by Michael</title><link>https://sourceforge.net/p/cursor2lob/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v12
+++ v13
@@ -94,7 +94,7 @@
 | EMP_CSV | DEPTNO | DNAME |
 | ------ | ------ | ------ |
 | 10 | ACCOUNTING | 7782••••CLARK•••••2450••••↵&lt;br/&gt;7839••••KING••••••5000••••↵&lt;br/&gt;7934••••MILLER••••1300••••↵ |
-| 20 | RESEARCH | 7369;SMITH;800↵&lt;br/&gt;7566;JONES;2975↵&lt;br/&gt;7788;SCOTT;3000↵&lt;br/&gt;7876;ADAMS;1100↵&lt;br/&gt;7902;FORD;3000↵ |
+| 20 | RESEARCH | 7369••••SMITH•••••800•••••↵&lt;br/&gt;7566••••JONES•••••2975••••↵&lt;br/&gt;7788••••SCOTT•••••3000••••↵&lt;br/&gt;7876••••ADAMS•••••1100••••↵&lt;br/&gt;7902••••FORD••••••3000••••↵ |
 | 30 | SALES | 7499;ALLEN;1600↵&lt;br/&gt;7521;WARD;1250↵&lt;br/&gt;7654;MARTIN;1250↵&lt;br/&gt;7698;BLAKE;2850↵&lt;br/&gt;7844;TURNER;1500↵&lt;br/&gt;7900;JAMES;950↵
 | 40 | OPERATIONS | *(null)* |

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael</dc:creator><pubDate>Thu, 26 May 2016 17:27:41 -0000</pubDate><guid>https://sourceforge.nete763f0bf3c4a49963647bcd97479fc89654b25ec</guid></item><item><title>Home modified by Michael</title><link>https://sourceforge.net/p/cursor2lob/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v11
+++ v12
@@ -93,8 +93,7 @@

 | EMP_CSV | DEPTNO | DNAME |
 | ------ | ------ | ------ |
-| 10 | ACCOUNTING | 7782••••CLARK•••••2450••••↵&lt;br/&gt;
-7839••••KING••••••5000••••↵&lt;br/&gt;7934••••MILLER••••1300••••↵ |
+| 10 | ACCOUNTING | 7782••••CLARK•••••2450••••↵&lt;br/&gt;7839••••KING••••••5000••••↵&lt;br/&gt;7934••••MILLER••••1300••••↵ |
 | 20 | RESEARCH | 7369;SMITH;800↵&lt;br/&gt;7566;JONES;2975↵&lt;br/&gt;7788;SCOTT;3000↵&lt;br/&gt;7876;ADAMS;1100↵&lt;br/&gt;7902;FORD;3000↵ |
 | 30 | SALES | 7499;ALLEN;1600↵&lt;br/&gt;7521;WARD;1250↵&lt;br/&gt;7654;MARTIN;1250↵&lt;br/&gt;7698;BLAKE;2850↵&lt;br/&gt;7844;TURNER;1500↵&lt;br/&gt;7900;JAMES;950↵
 | 40 | OPERATIONS | *(null)* |
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael</dc:creator><pubDate>Thu, 26 May 2016 17:25:43 -0000</pubDate><guid>https://sourceforge.netd4163c32bee6c49da031578a5cce25eb53d93449</guid></item><item><title>Home modified by Michael</title><link>https://sourceforge.net/p/cursor2lob/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v10
+++ v11
@@ -73,5 +73,31 @@
 | 30 | SALES | 7499;ALLEN;1600↵&lt;br/&gt;7521;WARD;1250↵&lt;br/&gt;7654;MARTIN;1250↵&lt;br/&gt;7698;BLAKE;2850↵&lt;br/&gt;7844;TURNER;1500↵&lt;br/&gt;7900;JAMES;950↵
 | 40 | OPERATIONS | *(null)* |

+Generating the same data as a fixed-column format works this way:
+
+~~~
+select d.deptno, d.dname,
+       cursor2lob.to_clob(
+         cursor(select rpad(e.empno, 8, ' '),
+                       rpad(e.ename, 10, ' '),
+                       rpad(e.sal, 8, ' ')
+                from   emp e
+                where  e.deptno = d.deptno), /* Cursor */
+         chr(10),                     /* Row Separator */
+         null                         /* Column Separator */
+       ) emp_csv
+from   dept d
+~~~
+
+The result is as follows:
+
+| EMP_CSV | DEPTNO | DNAME |
+| ------ | ------ | ------ |
+| 10 | ACCOUNTING | 7782••••CLARK•••••2450••••↵&lt;br/&gt;
+7839••••KING••••••5000••••↵&lt;br/&gt;7934••••MILLER••••1300••••↵ |
+| 20 | RESEARCH | 7369;SMITH;800↵&lt;br/&gt;7566;JONES;2975↵&lt;br/&gt;7788;SCOTT;3000↵&lt;br/&gt;7876;ADAMS;1100↵&lt;br/&gt;7902;FORD;3000↵ |
+| 30 | SALES | 7499;ALLEN;1600↵&lt;br/&gt;7521;WARD;1250↵&lt;br/&gt;7654;MARTIN;1250↵&lt;br/&gt;7698;BLAKE;2850↵&lt;br/&gt;7844;TURNER;1500↵&lt;br/&gt;7900;JAMES;950↵
+| 40 | OPERATIONS | *(null)* |
+
 [[members limit=20]]
 [[download_button]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael</dc:creator><pubDate>Thu, 26 May 2016 17:25:14 -0000</pubDate><guid>https://sourceforge.neteb5b2cf0371d77556b59355b9b140bb567549001</guid></item><item><title>Home modified by Michael</title><link>https://sourceforge.net/p/cursor2lob/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v9
+++ v10
@@ -59,7 +59,7 @@
          chr(10),                     /* Row Separator */
          ';',                         /* Column Separator */
          '"',                         /* Delimiter */
-         1                            /* 1 -&amp;gt; First row includes column names */
+         0                            /* 0 -&amp;gt; No column names */
        ) emp_csv
 from   dept d
 ~~~
@@ -68,9 +68,9 @@

 | EMP_CSV | DEPTNO | DNAME |
 | ------ | ------ | ------ |
-| 10 | ACCOUNTING | EMPNO;ENAME;SAL↵&lt;br/&gt;7782;CLARK;2450↵&lt;br/&gt;7839;KING;5000↵&lt;br/&gt;7934;MILLER;1300↵ |
-| 20 | RESEARCH | EMPNO;ENAME;SAL↵&lt;br/&gt;7369;SMITH;800↵&lt;br/&gt;7566;JONES;2975↵&lt;br/&gt;7788;SCOTT;3000↵&lt;br/&gt;7876;ADAMS;1100↵&lt;br/&gt;7902;FORD;3000↵ |
-| 30 | SALES | EMPNO;ENAME;SAL↵&lt;br/&gt;7499;ALLEN;1600↵&lt;br/&gt;7521;WARD;1250↵&lt;br/&gt;7654;MARTIN;1250↵&lt;br/&gt;7698;BLAKE;2850↵&lt;br/&gt;7844;TURNER;1500↵&lt;br/&gt;7900;JAMES;950↵
+| 10 | ACCOUNTING | 7782;CLARK;2450↵&lt;br/&gt;7839;KING;5000↵&lt;br/&gt;7934;MILLER;1300↵ |
+| 20 | RESEARCH | 7369;SMITH;800↵&lt;br/&gt;7566;JONES;2975↵&lt;br/&gt;7788;SCOTT;3000↵&lt;br/&gt;7876;ADAMS;1100↵&lt;br/&gt;7902;FORD;3000↵ |
+| 30 | SALES | 7499;ALLEN;1600↵&lt;br/&gt;7521;WARD;1250↵&lt;br/&gt;7654;MARTIN;1250↵&lt;br/&gt;7698;BLAKE;2850↵&lt;br/&gt;7844;TURNER;1500↵&lt;br/&gt;7900;JAMES;950↵
 | 40 | OPERATIONS | *(null)* |

 [[members limit=20]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael</dc:creator><pubDate>Thu, 26 May 2016 17:18:28 -0000</pubDate><guid>https://sourceforge.netce5c946c320583a5bb8275e30a08e480c9b54f8e</guid></item><item><title>Home modified by Michael</title><link>https://sourceforge.net/p/cursor2lob/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v8
+++ v9
@@ -64,6 +64,14 @@
 from   dept d
 ~~~

+The result is as follows:
+
+| EMP_CSV | DEPTNO | DNAME |
+| ------ | ------ | ------ |
+| 10 | ACCOUNTING | EMPNO;ENAME;SAL↵&lt;br/&gt;7782;CLARK;2450↵&lt;br/&gt;7839;KING;5000↵&lt;br/&gt;7934;MILLER;1300↵ |
+| 20 | RESEARCH | EMPNO;ENAME;SAL↵&lt;br/&gt;7369;SMITH;800↵&lt;br/&gt;7566;JONES;2975↵&lt;br/&gt;7788;SCOTT;3000↵&lt;br/&gt;7876;ADAMS;1100↵&lt;br/&gt;7902;FORD;3000↵ |
+| 30 | SALES | EMPNO;ENAME;SAL↵&lt;br/&gt;7499;ALLEN;1600↵&lt;br/&gt;7521;WARD;1250↵&lt;br/&gt;7654;MARTIN;1250↵&lt;br/&gt;7698;BLAKE;2850↵&lt;br/&gt;7844;TURNER;1500↵&lt;br/&gt;7900;JAMES;950↵
+| 40 | OPERATIONS | *(null)* |

 [[members limit=20]]
 [[download_button]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael</dc:creator><pubDate>Thu, 26 May 2016 17:17:33 -0000</pubDate><guid>https://sourceforge.net157213752fa6cdb3cffec907b5f9fb0397fb6133</guid></item></channel></rss>