Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试从我的数据库服务器中找到一个数据库。我在服务器上有 22 个不同的数据库。我在用:
select [name] from sys.databases
但这会返回所有 22 个名称。我只需要一个名为“LightBulb”的特定产品。
任何人都知道吗?同时我会继续努力。
谢谢你。
从 sys.databases 中选择 [name] 其中 [name] = 'LightBulb';