Consider I have
*----*------*-----------*----------*----------*---------------*----------------*
| id | name | addressid | address1 | address2 | attendancekey | attendancedate |
*----*------*-----------*----------*----------*---------------*----------------*
columns in CSV file and I want only
id, name to be imported in student table and
addressid, address1, address2 to be imported in address table and
attendancekey and attendancedate to be imported in attendance table in database.
What query to be used to import the required columns into the table?
Database Postgresql Version - 12
Python Version - 3.4.4
Psycopg2 Version - 2.7.5
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…