DEFAULT Current_timestamp() On A VIEW - Omitted Column Takes A 'zero' Value

(Doc ID 2335355.1)

Last updated on JANUARY 29, 2018

Applies to:

MySQL Server - Version 5.7 and later
Information in this document applies to any platform.

Goal

Why zero values are inserted on a column if we omit it from the insert statement on the view which has default as current_timestamp() where as inserting directly on the table by omitting the column takes correct time stamp ?
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms