Re: Override CURRENT_TIMESTAMP in trigger?
I meant to disable this option directly in the table, e.g. -
CREATE TABLE table1(
id INT(11) NOT NULL,
ts TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (id)
);
ALTER TABLE table1
CHANGE COLUMN ts ts TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP
ALTER TABLE Syntax.
Devart Company,
MySQL management tools
http://www.devart.com/dbforge/mysql/
Subject
Views
Written By
Posted
4425
May 21, 2012 12:45PM
1709
May 23, 2012 07:09AM
1699
May 23, 2012 02:16PM
Re: Override CURRENT_TIMESTAMP in trigger?
1776
May 24, 2012 01:04AM
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.