niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Oracle » Tools
concat two strings
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Jürg Schaufelberger
*nix forums beginner


Joined: 15 Sep 2005
Posts: 4

PostPosted: Thu May 11, 2006 6:27 pm    Post subject: concat two strings Reply with quote

Hello

I need a function to concat two strings only if both values
are not null. The concat() doesn't work like this and the
operater || either.
I would like to concat the strings in a SQL-statement.
Is there in Oracle 9 a function that works like I need it ?
What's the easiest way to solve this problem ?

Thanks for your help
Jürg
Back to top
Mark C. Stock
*nix forums Guru


Joined: 05 May 2005
Posts: 730

PostPosted: Thu May 11, 2006 6:42 pm    Post subject: Re: concat two strings Reply with quote

"Jürg Schaufelberger" <juerg.schaufelberger@tele2.ch> wrote in message
news:mlL8g.169$OK3.41@nntpserver.swip.net...
: Hello
:
: I need a function to concat two strings only if both values
: are not null. The concat() doesn't work like this and the
: operater || either.
: I would like to concat the strings in a SQL-statement.
: Is there in Oracle 9 a function that works like I need it ?
: What's the easiest way to solve this problem ?
:
: Thanks for your help
: Jürg
:
:

look into case, nvl, nlv2, and decode

some combination of one or two of these should work for you

++ mcs
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Sat Jan 10, 2009 3:21 am | All times are GMT
navigation Forum index » Databases » Oracle » Tools
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Interpret variables in strings in ksh greenhakan@gmail.com shell 2 Wed Jul 19, 2006 2:03 pm
No new posts How to add variables to strings? yusufm Perl 6 Tue Jul 18, 2006 7:02 pm
No new posts How to add variables to strings? yusufm Perl 1 Tue Jul 18, 2006 7:01 pm
No new posts Python strings outside the 128 range Sébastien Boisgérault python 17 Thu Jul 13, 2006 10:26 am
No new posts Writing multilingual site - how to effectively output str... romayankin@gmail.com PHP 12 Mon Jul 10, 2006 10:59 pm

Loans | Xbox Mod Chip | AdSense Optimization Tutorials | Bankruptcy | Web Advertising
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1981s ][ Queries: 16 (0.1317s) ][ GZIP on - Debug on ]