Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax for Stored Procedure
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Syntax for Stored Procedure
Miscellaneous
Thread ID:
00846249
Message ID:
00846249
Views:
45
Hello All !
I’m wondering may I use CASE or IF statement in Where clause when I’m writing stored procedure ?
For example stored procedure looks like this
CREATE PROCEDURE dbo.usp_test
@corpname varchar(30)
@corpdba varchar(30)
AS select corp.corp_name from corp
where corp.corp_name like ‘%’+@corpname+’%’ or corp.corp_dba like ‘%’+@ corpdba +’%’
Is there any way to check inside the procedure if any of parameters is empty ?
Thanks in advance
Mariam
Next
Reply
Map
View

Click here to load this message in the networking platform