When I created the table tb_usuario, I put a field to get the exact date and time when making a record to the table tb_usuario, but when I do an insert, do not take or show the date and time when insert something.
this is the code I use for the insert:
INSERT INTO tb_usuario values (null ,'alias','apellido','nombre','12','tipo doc','nro doc', 'correo','nro cel','puesto','area puesto', null ,'ip','nombre pc')
and this is my table tb_user:
drop table if exists tb_usuario;
create table tb_usuario
(
cod_usuario INT AUTO_INCREMENT,
alias_usuario VARCHAR (15),
apellidos VARCHAR(50),
nombres VARCHAR(50),
edad INT,
tipo_doc VARCHAR (50),
nro_doc VARCHAR(15),
correo VARCHAR (50),
nro_cel VARCHAR (9),
puesto VARCHAR (50),
area_puesto VARCHAR(50),
fecha_creacion_usuario TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
ip_v4 VARCHAR(20),
nombre_pc VARCHAR(30),
PRIMARY KEY(cod_usuario)
);
the bd engine is mysql workbench. What am I doing wrong? Any recommendation?