How to overwrite the table each time there is an insert statement in a vertica?
Consider:
INSERT INTO table1 VALUES ('My Value');
This will give say
| MyCol |
----------
MyValue
How to overwrite the same table on next insert statement say
INSERT INTO table1 VALUES ('My Value2');
| MyCol |
----------
MyValue2
You can either
DELETEorTRUNCATEyour table. There is no override method for Vertica. UseTRUNCATEsince you have wanted only and only a value.Source
Or (if connection get lost before you commit then it will not get effected.)
Rollback