> hi fellow developers,
>
> can anyone give me some ideas on this? say if users wish to query the
records for the year 1999, what should i do? i have a whole lot of
records ranging from 1991 to 2001 as in oracle data field, "dd-mm-yy",
so in this case what should i do in order to extract the records which
fall on the year 1999?
in oracle:
select * from your_table where your_date_field = to_date('your_year',
'YYYY')
or
select * from your_table where to_char(your_date_field,'YYYY') =
'your_year'
P.S:: there are a lot of sql-related newgroups/mailing-lists... ;)
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets