开发者

EORROR : Near Keyword SELECT on 6 line

开发者 https://www.devze.com 2022-12-21 00:19 出处:网络
set ANSI_NULLS ON set QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo].[FlowClientGetCatWeb] (@ID_Izmerit Integer, @ID_User Integer, @APP bit)
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[FlowClientGetCatWeb] 
(@ID_Izmerit Integer, @ID_User Integer, @APP bit) 
AS 
SELECT Name, (CAST(ID_ListGroupParIzm AS nvarchar(10))+'_'+CAST(Point AS nvarchar(10))) AS GroupPoint 
FROM 
SELECT ID_ListGroupParIzm, Name, Point 
开发者_高级运维FROM FlowClientGetCat(@ID_Izmerit,@ID_User,@APP)

why error ? and how to fix :-/


Enclose the nested query into parenthesis:

ALTER PROCEDURE [dbo].[FlowClientGetCatWeb] 
(@ID_Izmerit Integer, @ID_User Integer, @APP bit) 
AS 
SELECT  Name, (CAST(ID_ListGroupParIzm AS nvarchar(10))+'_'+CAST(Point AS nvarchar(10))) AS GroupPoint 
FROM    (
        SELECT  ID_ListGroupParIzm, Name, Point 
        FROM    FlowClientGetCat(@ID_Izmerit,@ID_User,@APP)
        ) q
0

精彩评论

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