phase 4 : rajout de la table phase_5_pk

This commit is contained in:
MaelREBOUX 2021-12-09 15:53:25 +01:00
parent 062bd6b16d
commit d53fa0e35e
3 changed files with 7 additions and 2 deletions

Binary file not shown.

View file

@ -170,11 +170,15 @@ ORDER BY id ;"""
print("")
print(" Import des PK dans la table phase_5_pk_ref")
sql_transfert = "TRUNCATE TABLE phase_5_pk_ref ; "
sql_transfert += "INSERT INTO phase_5_pk_ref SELECT * FROM phase_3_pk ORDER BY pk_id ;"
db_redadeg_cursor.execute(sql_transfert)
print(" fait")
print(" Import des PK dans la table phase_5_pk")
sql_transfert = "TRUNCATE TABLE phase_5_pk ; "
sql_transfert += "INSERT INTO phase_5_pk SELECT * FROM phase_3_pk ORDER BY pk_id ;"
db_redadeg_cursor.execute(sql_transfert)
print(" fait")

View file

@ -799,6 +799,7 @@ CREATE TABLE phase_5_pk
pk_lat numeric(10,8),
length_real numeric(6,2),
length_theorical integer,
length_total integer,
secteur_id integer,
municipality_admincode text,
municipality_postcode text,