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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DATES Handling in FIREBIRD 1.5

Status
Not open for further replies.

GosPHEL

Programmer
Aug 9, 2004
4
MX
Hi there All!


I was trying to Benchmark a Stored Procedure 'cause it sent me recordset in very different times, So I tried to Get a

TIEMPO_INICIAL= CAST(CURRENT_TIMESTAMP AS TIMESTAMP);

CODE CODE CODE
CODE CODE CODE
CODE CODE CODE
CODE CODE CODE
CODE CODE CODE
CODE CODE CODE


TIEMPO_FINAL= CAST(CURRENT_TIMESTAMP AS TIMESTAMP);

When I tried to do this:

TIEMPO_RESULTANTE = (TIEMPO_FINAL) - (TIEMPO_INICIAL);

It sends me an error:

CONVERSION ERROR FROM STRING 0.0000000
....

Where could I find Dates Handling documentation?

Am I wrong?

I aprecciate!


Noe Monreal
Just Going Up!
 
Hi,

You don't have to cast CURRENT_TIMESTAMP to the "TIMESTAMP" datatype, it's already of that type.

What type is TIEMPO_RESULTANTE?

Martijn Tonies
Database Workbench - the developer tool for InterBase, Firebird, MySQL & MS SQL Server
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top