Home > Ask the Oracle Experts > (Archive) SQL and PL/SQL Questions & Answers > Line placement in an EMESSAGE
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

Line placement in an EMESSAGE

Azim Fahmi EXPERT RESPONSE FROM: Azim Fahmi

Pose a Question
Other Oracle Categories
Meet all Oracle Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 04 February 2005
Have you ever heard of a way in an EMESSAGE to be able to make the second sentence start on the next line?

Example:

 f_yes_no( 'The OTB for Category '||classRec.class||' has been exceeded. '||
                                '     Available Amount is '||l_avail||' and the amount spent was '||classRec.order_cost||
                                '.      Do you want to continue this order in APPROVED/IN TRANSIT?' )

I want the sentence starting with "Available..." to start on the next line, and the sentence starting with "Do you..." on the following line.

Is there some magic "end-of-line" character or something that you are aware of to accomplish this. I hate to guess and do spaces.... looks like sloppy coding.


>
EXPERT RESPONSE
Try concatenating a carriage return and line feed to your output string. There is a function to return special character in Oracle called CHR. The ASCII value of Carriage return and line feeds are 10 and 13 respectively. So, concatenating CHR(10) || CHR(13) will do the trick for you.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
(Archive) SQL and PL/SQL
ORA-01654 even though maxextents defined as unlimited
Read, process and write a text file to the database
Concatenating a null character affecting performance
Generating a 10 character alphanumeric sequence
Working with InterDev and DreamWeaver
Specifying a column as NULL
Write a SQL script with optional arguments
Searching for stored reservation dates in a database
Error message while trying to write a Pl/SQL block
Why do many DBMS push their own programming languages?

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

HomeNewsTopicsTipsAsk the ExpertsMultimediaWhite PapersProductsBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2003 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts