can I give SQL Server database name with hyphen like abc-123?

后端 未结 4 1436
清歌不尽
清歌不尽 2021-01-17 10:31

I created a sql server database with name of abc-123, in that I created a table Emp, when I run like

select * from abc-123.emp;
I am gett
4条回答
  •  说谎
    说谎 (楼主)
    2021-01-17 10:44

    if you are using databasename with table name then suppose to specify the schema name also.

    select * from [abc-123].dbo.emp

提交回复
热议问题