Checking if database exists or not in SQL Azure

前端 未结 3 1741
情书的邮戳
情书的邮戳 2021-01-15 01:24

Could any one please tell me how to code whether a database exists or not in sql azure ?

3条回答
  •  既然无缘
    2021-01-15 02:08

    if exists (select * from master.sys.databases where name = '[enter name here]')
    

提交回复
热议问题