Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: char(1) VS varchar2(1)

RE: char(1) VS varchar2(1)

From: Guang Mei <gmei_at_incyte.com>
Date: Fri, 31 Oct 2003 08:54:52 -0800
Message-ID: <F001.005D534F.20031031085452@fatcity.com>


We had some 9i PL/SQL problem when sql invloves "UNION" and one sql selects varchar2 column with string concat and another selects char(1) column. Run the same 9i query in straight sql does not have problem. 8i does not give any problem (in both sql and pl/sql).

Guang

-----Original Message-----
Stephane Paquette
Sent: Friday, October 31, 2003 11:04 AM
To: Multiple recipients of list ORACLE-L

Hi,

Some people here are telling me that using char(1) is better than varchar2(1) for a field code.
I do not see why.

I never used char as it may cause problems when doing some comparisons.

Any reasons ?

Stephane Paquette
Administrateur de bases de donnees
Database Administrator
Standard Life
www.standardlife.ca
Tel. (514) 499-7999 7470 and (514) 925-7187 stephane.paquette_at_standardlife.ca <mailto:stephane.paquette_at_standardlife.ca>

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Stephane Paquette
  INET: stephane.paquette_at_standardlife.ca

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Guang Mei INET: gmei_at_incyte.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Fri Oct 31 2003 - 10:54:52 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US