MySQL Forums
Forum List  »  Oracle

DEFAULT NOW() AND DEFAULT USER ...
Posted by: Rafael Montoya
Date: February 02, 2006 04:30PM

Hi, i'm migrating from oracle to mysql, this is the code to generate a table in oracle:

CREATE TABLE RGMD_GESTION (
V_COD_GESTION VARCHAR(15) NOT NULL,
V_COD_USER VARCHAR(15) NULL,
D_FEC_CRE DATE DEFAULT sysdate() NULL,
V_USU_CRE VARCHAR(30) DEFAULT USER NULL
);

but i'm not sure if the third attribute (the date one) is equivalent with

D_FEC_CRE TIMESTAMP NULL DEFAULT now(),

and I have no idea how to migrate the last attribute. I couldn't find any equivalence in the manual for DEFAULT USER.

I will thank any advice. bye.

Rafael.

Options: ReplyQuote


Subject
Views
Written By
Posted
DEFAULT NOW() AND DEFAULT USER ...
20733
February 02, 2006 04:30PM
9968
February 03, 2006 08:26AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.