如何分离列数据以从一个 table 复制到另一个 table?

How to separate column data to copy from one table to other table?

我正在使用 pgAdmin。我有两个 table:STUDENT 和 STUD。

我需要将 DATE_TIME 从 STUD table 中拆分出来,以便我可以将 DATE 和 TIME 单独复制到 STUDENT table。

我该怎么做?

insert into student (date_col,time_col) select date_time::date, date_time::time from stud;

应该适合你