在SQL Server中CREATE TABLE IF NOT EXISTS等效
  可能重复: 
  SQL Server:检查表是否存在 
  CREATE TABLE IF NOT EXISTS在mysql上工作,但在SQL Server 2008 R2上失败。  什么是等效语法? 
if not exists (select * from sysobjects where name='cars' and xtype='U')
    create table cars (
        Name varchar(64) not null
    )
go
如果表格不存在,上面将创建一个名为cars的表格。 
上一篇: CREATE TABLE IF NOT EXISTS equivalent in SQL Server
下一篇: SQL Server 2012 column identity increment jumping from 6 to 1000+ on 7th entry
