SQL Server同名表的判断 IF EXISTS(Select * From sysobjects where ID=Object_ID(N'tablename') AND xType='U') print 'exists' else print 'not exists'SQL Server: