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

Home -> Community -> Usenet -> c.d.o.misc -> RE:Strange result using: select and the '=' sign?

RE:Strange result using: select and the '=' sign?

From: Christer Wallentin <christer.wallentin_at_media.sema.se>
Date: Wed, 22 Mar 2000 14:51:02 +0100
Message-ID: <35jhdscaa0kr8o09fnse4692fot7tdb7n0@4ax.com>


When making a selection using :

SELECT * FROM tableName WHERE tableCol = '1234'

It won't return anyting. (The tableCol is of the VARCHAR2 type)

The following works:

SELECT * FROM tableName WHERE tableCol = TO_CHAR(1234)

SELECT * FROM tableName WHERE tableCol >= '1234'

SELECT * FROM tableName WHERE tableCol <= '1234'

SELECT * FROM tableName WHERE tableCol BETWEEN '1234' AND '1234'

And also the way that I have solved the problem with att the moment:

SELECT * FROM tableName WHERE tableCol >= '1234' AND tableCol<='1234'

Have I made a fatal misstake, is it a bug or???

christer.wallentin_at_notes.sema.se Received on Wed Mar 22 2000 - 07:51:02 CST

Original text of this message

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