Click here to Skip to main content
15,888,290 members
Home / Discussions / Database
   

Database

 
GeneralRunning Total Pin
samoore1-Jul-05 4:50
samoore1-Jul-05 4:50 
Generalwildcards Pin
monageasmear1-Jul-05 4:04
monageasmear1-Jul-05 4:04 
GeneralRe: wildcards Pin
Hesham Amin2-Jul-05 23:31
Hesham Amin2-Jul-05 23:31 
GeneralSubreports using SQL Reporting service Pin
pshinde@brickred.com1-Jul-05 1:07
pshinde@brickred.com1-Jul-05 1:07 
Generalsearching for documents of stored procedures Pin
under281130-Jun-05 23:13
under281130-Jun-05 23:13 
GeneralRe: searching for documents of stored procedures Pin
Colin Angus Mackay30-Jun-05 23:31
Colin Angus Mackay30-Jun-05 23:31 
GeneralOleDbTransaction Rollback Pin
myNameIsRon30-Jun-05 20:45
myNameIsRon30-Jun-05 20:45 
GeneralSQL - write file Pin
Anzy30-Jun-05 17:12
Anzy30-Jun-05 17:12 
Hi all,

I'm currently trying to write a few lines into a csv file from a sql package. One thing I have to make sure is that the csv file doesn't end with a blank line. That is, I have to delete all new line and return feed from the end of the file. I've tried:

fileOut := utl_file.fopen('xxx', 'yyy', 'W', 32760);
utl_file.put_line(fileout, 'line 1' || Chr(13));
utl_file.put(fileout, 'line 2');
utl_file.fclose(fileOut);

But when I open the csv file created, there's always a blank line at the end of the file. It seems like a blank line is always being appended to the end of the file automatically on file close. Is this true? And are there any ways of avoiding this through sql?

Thanks
GeneralLogin Pin
Desi Bravo30-Jun-05 16:41
Desi Bravo30-Jun-05 16:41 
GeneralRe: Login Pin
Christian Graus30-Jun-05 17:19
protectorChristian Graus30-Jun-05 17:19 
GeneralRe: Login Pin
Yulianto.30-Jun-05 17:45
Yulianto.30-Jun-05 17:45 
GeneralRe: Login Pin
Christian Graus30-Jun-05 17:49
protectorChristian Graus30-Jun-05 17:49 
GeneralRe: Login Pin
Yulianto.30-Jun-05 17:54
Yulianto.30-Jun-05 17:54 
GeneralRe: Login Pin
Christian Graus30-Jun-05 17:56
protectorChristian Graus30-Jun-05 17:56 
GeneralRe: Login Pin
Yulianto.30-Jun-05 18:01
Yulianto.30-Jun-05 18:01 
GeneralRe: Login Pin
Desi Bravo1-Jul-05 5:29
Desi Bravo1-Jul-05 5:29 
GeneralRe: Login Pin
Christian Graus1-Jul-05 20:20
protectorChristian Graus1-Jul-05 20:20 
GeneralRe: Login Pin
Desi Bravo3-Jul-05 4:37
Desi Bravo3-Jul-05 4:37 
GeneralRe: Login Pin
Christian Graus3-Jul-05 11:31
protectorChristian Graus3-Jul-05 11:31 
GeneralRe: Login Pin
Anonymous3-Jul-05 16:25
Anonymous3-Jul-05 16:25 
GeneralRe: Login Pin
Christian Graus3-Jul-05 16:36
protectorChristian Graus3-Jul-05 16:36 
Generalreplace function Pin
Anonymous30-Jun-05 15:45
Anonymous30-Jun-05 15:45 
GeneralRe: replace function Pin
Michael Potter1-Jul-05 10:45
Michael Potter1-Jul-05 10:45 
GeneralInsert Record into Database. What is wrong? Urgent. Thank You. Pin
shapper30-Jun-05 10:49
shapper30-Jun-05 10:49 
GeneralSelect command won't work after Insert command in stored procedure Pin
jchsiung230-Jun-05 10:15
jchsiung230-Jun-05 10:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.