|
-
Dec 22nd, 2005, 02:04 AM
#1
Thread Starter
Junior Member
oracle query
I have ORacle 9i database. With vb6 I am firing the query-
select * from woc_mas
(woc_dt is date type)
it is returning all the records. but on writing the query-
select * from woc_mas where woc_dt > '01/01/2005'
no records returns
suggest how to query with date field
-
Dec 22nd, 2005, 02:17 AM
#2
Frenzied Member
Re: oracle query
i think, by the looks of it, u should use the dd/mmm/yyyy format
try
VB Code:
select * from woc_mas where woc_dt > '01/jan/2005'
-
Dec 22nd, 2005, 02:34 AM
#3
Re: oracle query
Try this:
select * from woc_mas where woc_dt > to_date('01/01/2005', 'dd-mm-yyyy')
-
Dec 22nd, 2005, 03:53 AM
#4
Junior Member
Re: oracle query
hi
Format your date as per your database date formate
Virendrasinh Narendrasinh Mahida
----------------------------------
There is Never a WRONG time to do the RIGHT Thing 
-
Dec 22nd, 2005, 09:01 AM
#5
Re: oracle query
Moved to database development.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|