|
||||||
| Database & Database Programming MySQL, Oracle, SQL, PL/SQL, ABAP, Smart Forms, and other databases and languages. A database is an organized body of related information used in many websites (including CC). |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
| Sponsored Links |
|
|
|
|||||
|
Hello,
Without knowing the table structure and the date/time format (is it Unix Timestamp?) it may look something like this: Code:
SELECT tbl.firstname, tbl.surname FROM tbl AS tbl WHERE date < SYSDATE;
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages! |
|
|||||
|
Quote:
I'm using the ODBC feature in Delphi 5. I'm building the database into my software. I built the database using Access, but exported it into a .DB format, a paradox database format if I can remember correctly. At the moment I can successfully execute queries and return data. However, only to a degree. This is basically what I want to do: Code:
SELECT TimeDateIn, FirstName, Surname FROM orders.DB WHERE TimeDateIn < SYSDATE Once again, thankyou for your time. |
|
|||||
|
Anyone?
Sorry for bumping the thread but I need to hand this project in in a few weeks time and I'm getting really desperate about it now. All I need to do is get some SQL querys working. I think I've figured out what date function Delphi 5 understands, CURRENT_DATE(). However it says that the compatability is not supported. Thanks! |
|
|||||
|
A quick update,
I spoke to a fellow student today, and he has told me that it won't work by comparing the database attribute with an SQL function such as current_date(). Apparently, I have to set a variable inside the 'params'. And compare the variable with the database attribute. The only problem is... The button to add a new param is greyed out. And I can't see anything obvious to change that. Thanks. |
| Sponsored Links |
|
|
|
|||||
|
Quote:
If you look around some of the documentation on ODBC it may have another method listed...
__________________
Everything in Life can be solved with an 'If/Else' statement. Life is like one big try/catch statement, nested within a loop. -Will |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Struts and Hibernate: Error retrieving records from the DB | :-[yc]-: | Java Help | 3 | 05-17-2007 01:45 PM |
| getting the value of checkboxes to delete the records in the sql table | pavsuri | ASP, ASP.NET and Coldfusion | 1 | 05-07-2007 03:10 PM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |
Goal: 100,000 Posts
Complete: 98%