开发者

What does `from master..spt_values` mean [duplicate]

开发者 https://www.devze.com 2023-02-15 16:36 出处:网络
T开发者_高级运维his question already has answers here: Closed 11 years ago. Possible Duplicate: Why (and how) to split column using master..spt_values?
T开发者_高级运维his question already has answers here: Closed 11 years ago.

Possible Duplicate:

Why (and how) to split column using master..spt_values?

I have seen something like:

Selet ...   from master..spt_values where type='P' 

What does this mean?


That is the syntax for specifying a databasename, schema, and table name. You can use this syntax to specify a database different from the database you are currently connected to. In your example, master is the database name, the schema name is unspecified (so it becomes the default dbo schema) and spt_values is the table name.

For clarity, the above could also be: Select ... from master.dbo.spt_values

0

精彩评论

暂无评论...
验证码 换一张
取 消