I am trying to insert a blank into a timestamp field. In the table, it is defined as updt_ts timestamp NULL. But, I am still getting the below error:
ERROR: invalid input syntax for type timestamp: ""
CONTEXT: COPY dt_acct_stat_dim, line 1, column updt_ts: ""
Any fix for this error?
TIMESTAMP, the first should work (if the field is nullable), but the second won't. Are you running this query manually, or getting the input from somewhere (that might be sending empty string)?INSERT VALUES(id, NULL)instead ofINSERT VALUES(id, '')