U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ SQL » Call external funcions in SQL
Re: Call external funcions in SQL [message #40752 is a reply to message #40747] Thu, 12 September 2013 20:29 Go to previous messageGo to previous message
Zbych is currently offline  Zbych
Messages: 332
Registered: July 2009
Senior Member
koldo wrote on Thu, 12 September 2013 18:37

SqlSelect sel = Select(SqlAll()).From(TABLE).Where(DATE < GetSysTime());
// .. and one hour later or in some function
SQL & sel;
SQL.Fetch();

If you do that, than the easiest way would be to either create the query each time just before executing.


or let database check current time for you:
Postgres:
SqlSelect sel = Select(SqlAll()).From(TABLE).Where(DATE < SqlTxt("NOW()");

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Added code to MySqlSession::DoConnect() correct?
Next Topic: Strange build error with OleDB
Goto Forum:
  


Current Time: Sun Nov 01 01:57:47 GMT+1 2026

Total time taken to generate the page: 0.00812 seconds