0

I will be inserting new values into existing tables all the time, hence the if_exists will set to append.

On some occasions there will be no existing table and I want to preform some additional operation when this is the case.

How to I know if a new table was created when using the append approach?

Borut Flis
  • 15,715
  • 30
  • 92
  • 119
  • 1
    Do you know the table name prior to inserting the new values? If so, check if the table exists prior to inserting. – MrGumble Nov 08 '21 at 09:50
  • thanks for the idea. I know the table name, but I actually have to create several such tables, so I would have to check for each one. – Borut Flis Nov 10 '21 at 08:03

0 Answers0