📄 getfullpath.sql
字号:
CREATE FUNCTION FullClassPath (@ClassID int)
RETURNS nvarchar(4000) AS
BEGIN
DECLARE @temPath nvarchar(4000)
DECLARE @temID int
select @temPath =name,@temID=parentid from patentclass where id = @ClassID
if (@temID is null)
return @temPath;
else
begin
while(not (@temid is null))
begin
select @temPath = name +'\' + @temPath,@temID=parentid from patentclass where id = @temID
end
end
return @temPath
END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -