Pity.
There's no execuse to not wrap your database modifying statements inside a transaction, and to not rollback on failure.
As for checking for the existance of a table, that's rather easy in Sybase and MSSQL:
SELECT 1 FROM sysobjects WHERE name = "whatever" -- Name of the table AND type = "U" -- User defined table. -- Use "S" for a system table.
Abigail
In reply to Re: DBI recipes
by Abigail-II
in thread DBI recipes
by gmax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |