in reply to Re^2: DBI, add fields to existing table?
in thread DBI, add fields to existing table?

The finish() in your snippet isn't needed. It is only for fetching data when the fetch is not completed. It's true that prepare() & execute() is preferable when you are executing the same statement many times (prepare once, execute many), but if you are only executing a single statement and especially a statement like ALTER (which can't have any placeholders in it), there is no reason at all to prefer prepare() and execute() over do().
  • Comment on Re^3: DBI, add fields to existing table?