# It doesn’t export well for text fields with line breaks

**URL:** <https://forums.toadworld.com/t/it-doesn-t-export-well-for-text-fields-with-line-breaks/61923>\
**Category:** Toad for Oracle - Beta\
**Created:** [November 3, 2026, 4:47pm UTC](https://forums.toadworld.com/t/it-doesn-t-export-well-for-text-fields-with-line-breaks/61923 "2026-11-03T16:47:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ccevallos](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@ccevallos](https://forums.toadworld.com/u/ccevallos)\
**Post date:** [November 3, 2026, 4:47pm UTC](https://forums.toadworld.com/t/it-doesn-t-export-well-for-text-fields-with-line-breaks/61923/1 "2026-11-03T16:47:36Z")

</div>

Query:

`SELECT 1 AS numero, SYSDATE AS fecha_hora, 'Texto`  
`Texto' AS texto, TRUNC(SYSDATE) AS fecha FROM DUAL`  
`UNION`  
`SELECT 2 AS numero, SYSDATE AS fecha_hora, 'Texto 2`  
`Texto 2' AS texto, TRUNC(SYSDATE) AS fecha FROM DUAL`

 ![image](https://global.discourse-cdn.com/quest/original/3X/6/f/6fc428d949ba82d2253e7d63ee1370f3b0d6ae2a.png)

 ![image](https://global.discourse-cdn.com/quest/original/3X/c/7/c7d76b6d6bbf9dac64bd73c359766bb5238948fd.png)

 ![image](https://global.discourse-cdn.com/quest/original/3X/9/7/9701cf6ed86b399e410f1b5f5a224195218a6719.png)

 ![image](https://global.discourse-cdn.com/quest/original/3X/2/0/2002cde630f3a8d4d1185d51b29c729687184385.png)

 ![image](https://global.discourse-cdn.com/quest/original/3X/8/4/84a2c5f7511977fdef4b118fc1aa82bafda5c6c1.png)

It doesn't export well for text fields with line breaks.

This problem has been around for quite some time.

The query returns 2 records, and when I export it as "Delimited Text" (clipboard), the text with line breaks creates new rows.

When I export it in "Excel Instance" format, it works fine, but the date fields in Excel get formatted as descriptive dates and look different from Toad's grid.

The export I usually use that gives me the data as I see it in Toad is when I use "Delimited Text" (clipboard).  
Hopefully you can fix it.

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [November 3, 2026, 5:37pm UTC](https://forums.toadworld.com/t/it-doesn-t-export-well-for-text-fields-with-line-breaks/61923/2 "2026-11-03T17:37:13Z")

</div>

Hi Carlos,

When you export to the Excel File (or Excel Instance) format, Excel understands that a line break can be within a cell.

From your 3rd screen shot, it looks like you are opening your delimited text file in Excel (or pasting the clipboard into Excel). In any case, whatever Excel does in this case does not seem like a bug in Toad to me. Maybe Excel will handle it better if you use the "String Quoting" option (this is just a guess, I didn't try)

I think it is correct for Toad to write a line break into the output when it exists in your data. Do you think it should do something different? If so, what?

-John

---

<div class="post-metadata">

**Author:** ![ccevallos](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@ccevallos](https://forums.toadworld.com/u/ccevallos)\
**Post date:** [November 3, 2026, 7:50pm UTC](https://forums.toadworld.com/t/it-doesn-t-export-well-for-text-fields-with-line-breaks/61923/3 "2026-11-03T19:50:43Z")

</div>

The "Delimited Text" export and clipboard (from the example) should work regardless of line breaks that exist in a text within a field. That is, when pasting into Excel, it should respect the rows; it should create 2 rows and no more.

I'll give you a comparison with the same operation in 2 tools (Toad and SQL Developer). With TOAD, 4 rows are generated (because of the line break) and with SQL Developer only 2 rows are generated (which is correct).

 ![image](https://global.discourse-cdn.com/quest/original/3X/9/a/9a78cc37b7534faa90b6d8185e8371ff832955c7.png)

 ![image](https://global.discourse-cdn.com/quest/original/3X/6/7/6774678f7d28589936875afe1ab560a7bfb140c1.png)

 ![image](https://global.discourse-cdn.com/quest/original/3X/a/a/aa9f60976950ac8aa6d67f3cf405d13d4c3f41ea.png)

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [November 3, 2026, 8:05pm UTC](https://forums.toadworld.com/t/it-doesn-t-export-well-for-text-fields-with-line-breaks/61923/4 "2026-11-03T20:05:23Z")

</div>

Ok, let's forget about Excel for a minute.

The main thing here is that SQL Developer seems to have some options for delimited text that Toad does not. If Toad can give the same options and makes a file with the same format as SQL Dev, then Excel will behave the same with it.

Some questions:

1. Can I see SQL Dev output (pasted here, not into Excel)?
2. What are the "Delimitador" options?
3. Does "Cierre a la izqueirda/derecha" mean for each field or the whole line?
4. What are the other options for "terminador de linea"?

Thanks

---

<div class="post-metadata">

**Author:** ![ccevallos](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@ccevallos](https://forums.toadworld.com/u/ccevallos)\
**Post date:** [November 3, 2026, 8:59pm UTC](https://forums.toadworld.com/t/it-doesn-t-export-well-for-text-fields-with-line-breaks/61923/5 "2026-11-03T20:59:25Z")

</div>

**TOAD generates this:**

NUMERO FECHA\_HORA TEXTO FECHA  
1 03/11/2026 14:35:35 Texto  
Texto 03/11/2026  
2 03/11/2026 14:35:35 Texto 2  
Texto 2 03/11/2026

**SQL Developer generates this:**

"NUMERO" "FECHA\_HORA" "TEXTO" "FECHA"  
1 03/11/2026 "Texto  
Texto" 03/11/2026  
2 03/11/2026 "Texto 2  
Texto 2" 03/11/2026

I’ve pasted the result in each file. That’s in case you want to see all the characters that are printed. You open it with some editor (notepad++) and turn on 'Show all characters'

 ![image](https://global.discourse-cdn.com/quest/original/3X/f/0/f01ff78ee1a55c4714ee69fbaf3ec3ea3495970a.png)

[data--toad.txt](https://forums.toadworld.com/uploads/short-url/5uLsfZrImqQxJpLi57XdnujzZw4.txt) (129 Bytes)

[data--sqldev.txt](https://forums.toadworld.com/uploads/short-url/sACvrq8elgzOXLWAznse4GDXL81.txt) (123 Bytes)

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [November 3, 2026, 9:13pm UTC](https://forums.toadworld.com/t/it-doesn-t-export-well-for-text-fields-with-line-breaks/61923/6 "2026-11-03T21:13:24Z")

</div>

These options in Toad should give you the same thing as SQL Dev.

 ![image](https://global.discourse-cdn.com/quest/original/3X/6/c/6c2e6bf431e00caa181bf73062cc8daf1114aeaa.png)

---

<div class="post-metadata">

**Author:** ![ccevallos](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@ccevallos](https://forums.toadworld.com/u/ccevallos)\
**Post date:** [November 3, 2026, 9:19pm UTC](https://forums.toadworld.com/t/it-doesn-t-export-well-for-text-fields-with-line-breaks/61923/7 "2026-11-03T21:19:35Z")

</div>

Excellent John, that worked well for me. It's configurable and it wasn't an error.

Thanks a lot.
