Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Interbase data type: DATE

Status
Not open for further replies.

not24

Programmer
Feb 25, 2002
68
US
I'm new with InterBase database. I'm try to write ASP to get data from InterBase 5.x.

When I used this command in ASP, IBAdmin, IBAccess and IBView, it wouldn't show data but I know for fact that that data is in the database:

SELECT *
FROM PATIENT INNER JOIN VISIT ON PATIENT.PATIENTID=VISIT.PATIENTID
WHERE VISIT.LASTMODIFIED = '4/10/2002'

I read in the book, it sound like correct but I do not know why the data not show up.

Please help,

CM
 
What about "10/4/2002" - this is IB5, right? Do understand that the DATE field holds a time piece as well. Filter that off with an UDF.
Martijn Tonies
InterBase Workbench - the developer tool for InterBase and Firebird
 
It's suppose to be April 10, 2002. Will IB5 date format be difference? That field is TIMESTAMP type.

I actually want to use that query on ASP. I don't know much about Interbase. What's UDF anyway? Can I use it on ASP?

Please advice
 
An UDF is a User Defined Function. You can write a DLL in your favourite language and make it available to InterBase. Then, you can do things like:

select F_StripTime(MyDateColumn)
from mytable

etc - you might want to check out for more information and some links to a couple of free-ware UDF libraries.

Martijn Tonies
InterBase Workbench - the developer tool for InterBase and Firebird
 
I finally used command:
WHERE VISIT.LASTMODIFIED >= '4/10/2002' AND VISIT.LASTMODIFIED < '4/11/2002'

Then it's work. But thank you anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top