You need to consult the docs as to how your database implements EXISTS which normally operates on a subquery and returns a boolean.IF EXISTS ( SELECT 1 FROM sysobjects where name = 'some_table' and typ +e = 'U' ) -- do this if true ( maybe an update here ) SELECT 1 ELSE -- do this if false ( maybe an insert here ) SELECT 0
In reply to Re: Checking for DB table existence using DBI/DBD
by JamesNC
in thread Checking for DB table existence using DBI/DBD
by shemp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |