MySQL Forums
Forum List  »  MaxDB

Between and comparison operators problem.
Posted by: Ibrahima Baradji
Date: May 07, 2007 06:47AM

Hi,

When I execute the following statement:
SELECT ID FROM myTable where ID BETWEEN '1' AND '2'

I have the folowing result:

1000260
1000262
1000263
2

same result When I execute:
SELECT ID FROM myTable where ID >= '1' AND ID <= '2'

why the value '1000260', '1000262', '1000263' are returned ?

and why I have no result when I execute:
SELECT ID FROM myTable where ID BETWEEN '1' AND '1'

Thanks.

Options: ReplyQuote


Subject
Written By
Posted
Between and comparison operators problem.
May 07, 2007 06:47AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.