I have table field defined as like this approved_at DATETIME YEAR TO SECOND NOT NULL. In MySQL, when I insert to a datetime field I used MySQL function now(). But I couldn’t find any function in Informix to act like that. Is there no such function in Informix? Or, if it exists, what is that?
I have table field defined as like this approved_at DATETIME YEAR TO SECOND NOT
Share
I believe you’re looking for
CURRENT YEAR TO SECOND. Sometimes, you can get away with justCURRENT, but I don’t recommend trying it.