Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Re[2]: char is going away?
Yes, they keep saying that varchar may change in future releases, so use
varchar2. Maybe they'll finally use it. But for what I don't know.
-----Original Message-----
Sent: Wednesday, December 10, 2003 1:39 PM
To: Multiple recipients of list ORACLE-L
Raj, Jonathan
Dennis Williams
DBA
Lifetouch, Inc.
dwilliams_at_lifetouch.com
-----Original Message-----
Sent: Wednesday, December 10, 2003 1:10 PM
To: Multiple recipients of list ORACLE-L
Oracle has varchar and varchar2 both ...
<tfm>
The VARCHAR2 subtypes below have the same range of values as their base
type. For example, VARCHAR is just another name for VARCHAR2.
STRING
VARCHAR
You can use these subtypes for compatibility with ANSI/ISO and IBM types.
Note: Currently, VARCHAR is synonymous with VARCHAR2. However, in future releases of PL/SQL, to accommodate emerging SQL standards, VARCHAR might become a separate datatype with different comparison semantics. So, it is a good idea to use VARCHAR2 rather than VARCHAR. </tfm>
http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/03_types .htm#10824
HTH
Raj
-----Original Message-----
Sent: Wednesday, December 10, 2003 1:55 PM
To: Multiple recipients of list ORACLE-L
DW> If your application is COBOL-based, using CHAR DW> simplifies things quite a bit.
True enough. I'd forgotten about COBOL. The semantics of COBOL's PIC X fields match up pretty closely (exactly?) to SQL CHAR fields.
DW> My understanding is that VARCHAR2 is not even a SQL standard
The keyword VARCHAR2 is not in the standard, but a variable-length type is. I think the standard uses CHARACTER VARYING, or something like that. I don't have time to look it up right now.
DB2 uses VARCHAR, without the "2". I'm not sure why Oracle is so outspoken against that same keyword. I'd be interested in finding out.
Best regards,
Jonathan Gennick --- Brighten the corner where you are
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Jamadagni, Rajendra INET: Rajendra.Jamadagni_at_espn.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting servicesReceived on Wed Dec 10 2003 - 14:49:33 CST
---------------------------------------------------------------------
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: DENNIS WILLIAMS INET: DWILLIAMS_at_LIFETOUCH.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). This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Michael Milligan INET: Michael.Milligan_at_ingenix.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).