MySQL Forums
Forum List  »  Newbie

Re: Can't create NOT NULL timestamp
Posted by: Jan Kowalski
Date: September 03, 2015 05:40PM

Hi,

Thank you for the response.
I've tried your idea, my result is different from yours though:
mysql> CREATE TABLE `test` (
`id` int(10) unsigned auto_increment,
`startTime` timestamp,
PRIMARY KEY (`id`) )
ENGINE=ndb;
mysql> show create table test \G
[...]
`startTime` timestamp NULL DEFAULT NULL,
[...]


Your version achieves not null, but with a default. I want to force inserts to provide a 'startTime' value.

Options: ReplyQuote


Subject
Written By
Posted
September 02, 2015 10:53AM
Re: Can't create NOT NULL timestamp
September 03, 2015 05:40PM


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.