473,386 Members | 1,654 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to insert a Enter Key (a new line) into a string in Oracle 10g?

Hi,

I am trying to insert / append a Enter Key into a string so to achieve the effect as following:

Address:
4 Hollawood Road,
USA 123456

Some ppl recommended to use chr(10) or chr(13), however it did not seem to work after i tried as following statements.
SELECT 'abc' || chr(10) || 'def' AS TestStr FROM DUAL;
or
SELECT 'abc' || chr(13) || 'def' AS TestStr FROM DUAL;
Any body has any idea on this?
Thanks.
Dec 29 '06 #1
2 58677
sushma
4
hi,


SQL> SELECT 'ABC'|| CHR(10)||'DEF' as test from dual;

TEST
-------
ABC
DEF

It worked for me. try it out i think this is the right procedure.
Dec 29 '06 #2
Hi,

Really thanks for your reply. I also tried in a procedure and it works there. Seems like I am not able to see the proper result from the SQL Editor.
Dec 29 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Marc Collin | last post by:
hi i have str1, str2 and i how to Insert str2 in str1 starting from index I? thanks -- Borland rulez http://pages.infinit.net/borland
0
by: Red_Viking | last post by:
Hello, in Oracle Enterprise Manger Console i declared an array-type. Then i created a table which uses this type. How can i now insert an array to this table? Thanks in advance!
3
by: Juan | last post by:
I need to do some processing from my app after a row is inserted in an Orcale db, how can i do that? Thanks, Juan.
3
by: raveesh | last post by:
When i try to insert a date field to Oracle DB through INSERT command, i am getting an error "Invalid Month". I am using ASP.NET 2 (VB). Please advise how to tackle this issue.
1
by: nguyendinhdungp4a18 | last post by:
Hi all, I would like to ask your advice for my problem as below: I want to write one trigger in order to copy the "SQL command line" to one text file. Example: SQL > INSERT INTO TABLE a...
3
by: andrewkl | last post by:
hi, I have the following Perl code that inserts a string to an Oracle DB via a stored procedure: #!/usr/local/bin/perl ## Perl v5.8.6 built for sun4-solaris use strict; BEGIN...
1
by: cb38 | last post by:
I have an Excel spreadsheet where all data resides in column A. Cell A1 is blank and the data follows after that. I need to insert a line after each line with the ChangeType: add. How can I do...
2
by: Napsterr | last post by:
How to insert a line after each row of Datalist Control? <table> <tr> <td> <asp:Datalist> <HeaderTemplate>...........</HeaderTemplate> <ItemTemplate>...........</ItemTemplate>...
0
by: midhun singh | last post by:
Hi all, I have a little bit of a problem figuring out how to insert a textbox string from a VB.Net Windows form onto a Crystal Report. I have search through many articles and manuals for a way to...
1
by: SGKT | last post by:
Hi, Perl is new to me. I am trying to insert a line to a file. Ex: I have a file (trial.txt), content: ZZZZ AAA DDDD I am trying to insert CCC below AAA. MY perl command: open...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.