I am looking for a more efficient way to transfer data from one table to the other table. Assuming I have 2 tables, STUDENT and STUD and I have to take into consideration that there will be millions of transactions being made each day.
I am using PGAdmin. This is an example of my current script to transfer data from STUD to STUDENT table:
CREATE TABLE STUDENT(
STUDENT_NAME TEXT,
STUDENT_CLASS TEXT,
STUDENT_NO INTEGER,
STUDENT_ADDRESS TEXT,
.
.
.
);
INSERT INTO STUDENT(
STUDENT_NAME,
STUDENT_CLASS,
STUDENT_NO,
STUDENT_ADDRESS
)
SELECT
STUD_NAME,
STUD_CLASS,
STUD_NUM,
STUD_ADDS
FROM STUD
Thanks