Ask a sql question

there is table id, name;
table tweak B, and there are fields time, id, name;
. Now I want to insert all the databases of table tweak An into the database of tweeb.
originally thought
`insert into tweeb (id, name)
select id, name from tat _ A`

.

but I found that I could not initialize the time field of tweak B. what should I do if I also set a current time for the time field when I want to insert tweeb?

Mar.05,2021

time field needs to be set to timestamp type

EDITED

insert into t_B(id, name,time) 
select id, name, now() from t_A
Menu