SQL - create database and tables in one script

后端 未结 4 1758
太阳男子
太阳男子 2021-01-01 22:13

Sorry if already asked, but I can\'t find anything on this.

I am moving something over from MySQL to SQL Server I want to have a .sql file create a database and tabl

4条回答
  •  失恋的感觉
    2021-01-01 22:58

    You have to separate the statements with the GO keyword:

    sql query
    GO
    
    another sql query
    GO
    
    and so on
    

提交回复
热议问题