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: Re[2]: char is going away?

RE: Re[2]: char is going away?

From: Bob Lofstrand <blofstrand_at_csedge.com>
Date: Fri, 12 Dec 2003 06:44:25 -0800
Message-ID: <F001.005D9AF8.20031212064425@fatcity.com>






RE: Re[2]: char is going away?



On Informix, at least as late as 9.1, using varchars was down right dangerous. There were numerous bugs associated with them. In my last shop we would not allow the use of varchars because of the grief they would cause. A few months after I moved on, I told my former teammates over lunch that in the Oracle world we almost never use char. They were stunned. Unheard of in Informix.

-----Original Message-----
From: DENNIS WILLIAMS [mailto:DWILLIAMS@LIFETOUCH.COM]
Sent: Wednesday, December 10, 2003 2:39 PM
To: Multiple recipients of list ORACLE-L
Subject: RE: Re[2]: char is going away?


Raj, Jonathan

1. I have heard rumors that in other databases the VARCHAR performance isn't
good. In fact, some people that are converting from other databases to
Oracle are pleasantly surprised that Oracle handles VARCHAR well.
2. I have been curious about Oracle's statement that you should use
VARCHAR2. If I was a suspicious person I would say that sounded like a
vendor's attempt to encourage proprietary coding, but I'm not suspicious, no
way.
   My point isn't that VARCHAR isn't there, of course it is, but if you were
developing an application to sell and support on several different
databases, you might consider CHAR as a safer bet.

Dennis Williams
DBA
Lifetouch, Inc.
dwilliams@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
----------------------------------------------------------------------------
----
Rajendra dot Jamadagni at nospamespn dot com
All Views expressed in this email are strictly personal.
QOTD: Any clod can have facts, having an opinion is an art !


-----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


****************************************************************************
**********
This e-mail message is confidential, intended only for the named
recipient(s) above and may contain information that is privileged, attorney
work product or exempt from disclosure under applicable law. If you have
received this message in error, or are not the named recipient(s), please
immediately notify corporate MIS at (860) 766-2000 and delete this e-mail
message from your computer, Thank you.
****************************************************************************
**********5
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Jamadagni, Rajendra
  INET: Rajendra.Jamadagni@espn.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@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@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@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).

The information contained in this communication, including attachments, is strictly confidential and for the intended use of the addressee only; it may also contain proprietary, price sensitive, or legally privileged information. Notice is hereby given that any disclosure, distribution, dissemination, use, or copying of the information by anyone other than the intended recipient is strictly prohibited and may be illegal. If you have received this communication in error, please notify the sender immediately by reply e-mail, delete this communication, and destroy all copies.

Corporate Systems, Inc. has taken reasonable precautions to ensure that any attachment to this e-mail has been swept for viruses. We specifically disclaim all liability and will accept no responsibility for damage sustained as a result of software viruses and advise you to carry out your own virus checks before opening any attachment.
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Bob Lofstrand
  INET: blofstrand_at_csedge.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 Dec 12 2003 - 08:44:25 CST

Original text of this message

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