RPostgreSQL insert rows without all columns into db -
i'm trying insert rows representing not columns of postgres database. in particular, seeking insert columns except timestamp column has default set current timestamp.
i tried following:
dbwritetable(con, 'raw_results', df, append = true)
however, returned error indicated 1 of columns (not timestamp) not appropriate format timestamp.
i tried writing out insert statement:
query_string = "insert raw_results (col1, col2) values...." dbgetquery(con, query_string)
this returns warning message:
warning message: in postgresqlquicksql(conn, statement, ...) : not create executeinsert
how can simple insert postgres db via r?
Comments
Post a Comment