× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



You can only concatenate character variables. If you're using numeric, date,
etc., you need to convert those to chars using the appropriate scalar
function. ie: CHAR or DIGITS.

This is all clearly documented in the SQL Reference:

http://as400bks.rochester.ibm.com/pubs/html/as400/v4r5/ic2924/index.htm?info
/db2/rbafzmst02.htm



John Taylor


----- Original Message -----
From: "Giri Gopal" <GiriGopal@bcginK.com>
To: <rpg400-l@midrange.com>
Sent: Friday, August 31, 2001 08:17
Subject: Syntax for concat in sql


> Hello:
>
> I am trying to concat 3 fields of different data type. Is this possible in
> SQL syntax. I am not able to do concat even on a command line. I get
syntax
> error. Can some please tell me what the proper syntax is.
>
>
> Thanks for your help in advance.
>
> GG
>




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.