In MSSQL it is possible to, when creating a database tables from file, to set a default value for a column through a function call. F.E.:
create table tbl.....(
..
CDATE DATE NOT NULL DEFAULT GETDATE(),
..
)
Why is this not possible within MYSQL?
I used:
CREATE TABLE tbl.. (
..
CDATE DATE NOT NULL DEFAULT NOW(),
..
) TYPE=MyISAM;
create table tbl.....(
..
CDATE DATE NOT NULL DEFAULT GETDATE(),
..
)
Why is this not possible within MYSQL?
I used:
CREATE TABLE tbl.. (
..
CDATE DATE NOT NULL DEFAULT NOW(),
..
) TYPE=MyISAM;