Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Date Bind Variables using SQL Developer

Joshua_R_WeirSep 14 2008 — edited Sep 15 2008
Hi

Oracle DB: 9i
SQL Developer Installed on: Windows XP

When I try to execute a SQL statement with bind variables that should be type DATE the SQL developer pops up asking me to enter values for bind variables, however there is no bind variable type that you can specify so when I enter the date I get:

ORA-00932: inconsistent datatypes: expected DATE got NUMBER

Here is my SQL:

select *
from table1
where date1 between :weekstart and :weekend;

The bind variable values I entered were:

weekstart: 11-Sep-2008
weekend: 15-Sep-2008


I am new to SQL Developer, coming from TOAD. In TOAD when entering bind variables, you have to select what the type is, but in SQL developer it justs asks for a value.

Thanks in advance for the help.

Josh
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 13 2008
Added on Sep 14 2008
1 comment
5,095 views