Browse Source

Solucionar problemas en la modificación y entrada de nuevos elementos de la tabla CLINICOS.

main
del Carpio Huerta 2 years ago
parent
commit
ea01f18d16
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      sqlFunctions.R

+ 2
- 2
sqlFunctions.R

@ -238,7 +238,7 @@ sqlSincBD<-function(conn=dta, filetemp="queryOV.xlsx", sinc.samples=F, sinc.clin
for (i in fechas){ for (i in fechas){
clinics.mod[,i]<-as.Date(clinics.mod[,i]) clinics.mod[,i]<-as.Date(clinics.mod[,i])
} }
sqlUpdate(conn, clinics.mod,"CLINICOS")
sqlUpdate(conn, clinics.mod,"CLINICOS", index="UMID")
print("Tabla CLINICOS modificada.") print("Tabla CLINICOS modificada.")
} }
} }
@ -276,7 +276,7 @@ sqlSincBD<-function(conn=dta, filetemp="queryOV.xlsx", sinc.samples=F, sinc.clin
for (i in fechas){ for (i in fechas){
clinics.new[,i]<-as.Date(clinics.new[,i]) clinics.new[,i]<-as.Date(clinics.new[,i])
} }
sqlSave(conn, clinics.new, tablename="CLINICOS", append = T, varTypes = varTypes)
sqlSave(conn, clinics.new, tablename="CLINICOS", append = T, varTypes = varTypes, rownames = F)
print("Tabla CLINICOS sincronizada.") print("Tabla CLINICOS sincronizada.")
} }
} }

Loading…
Cancel
Save