https://docs.microsoft.com/en-us/sql/t-sql/functions/parsename-transact-sql?view=sql-server-2017
Syntax:
PARSENAME ( 'object_name' , object_piece )
Arguments
'object_name'
Is the name of the object for which to retrieve the specified object part. object_name is sysname. This parameter is an optionally-qualified object name. If all parts of the object name are qualified, this name can have four parts: the server name, the database name, the owner name, and the object name.
object_piece
Is the object part to return. object_piece is of type int, and can have these values:
1 = Object name
2 = Schema name
3 = Database name
4 = Server name

本文介绍SQL Server中的PARSENAME函数语法及用法。该函数用于从对象名称中提取特定部分,如服务器名、数据库名等。文章详细解释了各参数含义及其应用场景。
1752

被折叠的 条评论
为什么被折叠?



