|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
SYSDATE function
Hi all,
It is possible to get the system date in a SQL sentence? I have a trigger that is executed every time a new row is inserted in a table. In the trigger code I would like to store the system date in a column, but I don't know how to get it. I have read something about UDF, but I don't know if there is such UDF for Firebird. I have try to execute a simple 'select sysdate() from xxx' but is does not work. Could anynone help me? Thanks, Trini. |
|
#2
|
|||
|
|||
|
Hi,
NEW.column_name = CURRENT_TIMESTAMP; With regards, Martijn Tonies Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL Server. Upscene Productions http://www.upscene.com
__________________
Martijn Tonies Database Workbench: developer IDE for Firebird, MySQL, InterBase, MSSQL Server and Oracle Upscene Productions http://www.upscene.com |
|
#3
|
|||
|
|||
|
That's exactly what I needed, thanks !!!!
|
![]() |
| Viewing: Dev Shed Forums > Databases > Firebird SQL Development > SYSDATE function |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|