What does `from master..spt_values` mean [duplicate]
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
精彩评论