Я получаю ошибку рядом с AS, что является проблемой в IF ..?
Create Procedure dbo.sp_Normal_Search
(
@title as nvarchar(max),
@Description as nvarchar(max),
@Keywords as nvarchar(max),
@Chk_title as Bit,
@Chk_Description as Bit,
@Chk_Keywords as Bit,
@RD_AND as Bit,
@RD_OR as Bit
AS
if(@RD_AND = 1)
Begin
if(@Chk_title = 1)
Begin
(Select title from server_des where title Like '%'+ @title+'%')
End
END
GO
)
Я получаю ошибку рядом с AS, что является проблемой в IF ..?