开发者

EORROR : Near Keyword SELECT on 6 line

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜