![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I'm working in Sybase 9.0.2.2451 I'm new in Sybase and I'm trying to create a dynamic where clause in a stored procedure. This is my procedure: ALTER PROCEDURE "DBA"."Testing"( in iwhere VarChar(10) ) BEGIN Select * from tableX where columnname = 1 and columnname3 = 100 and columnname5 = 100 END If parameter iwhere = 'Y' I want to make the last two sentences starting with 'and' in my where clause invisible, But how do i do that ? I realy hope someone copuld help me. |
#3
| |||
| |||
|
|
ALTER PROCEDURE "DBA"."Testing"( in iwhere VarChar(10) ) BEGIN Select * from tableX where columnname = 1 and columnname3 = 100 and columnname5 = 100 END If parameter iwhere = 'Y' I want to make the last two sentences starting with 'and' in my where clause invisible, But how do i do that ? |
![]() |
| Thread Tools | |
| Display Modes | |
| |