I created a sql server database with name of abc-123, in that I created a table Emp, when I run like
abc-123
select * from abc-123.emp;
Use Back Quote for the DB name
select * from `abc-123`.emp;
or, select the existing database with a USE statement and run the query.
USE `abc-123`; select * from emp;