mysql
drop table if exists myTable
mssqlserver
方式一
if exists(select * from sys.objects where object_id = OBJECT_ID('myTable') and type in ('U'))
drop table myTable;
方式二
if exists(select * from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'myTable')
drop table myTable;