这是我的mssql函数代码。
ALTER function [dbo].[UF_GetOrderProducts]
(
@OrderId int
)
returns varchar(500)
as
begin
return
(
select CAST(VARCHAR(5),OP.ProductId)+'<br/>'
from OrderProduct as OP
where OP.OrderId = @OrderId
for xml path(''), type
).value('.', 'varchar(500)')
end
返回VARCHAR' is not a recognized built-in function name.
答案 0 :(得分:6)