![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I need some help in the below procedure. I have a column in the table empid the values are like 1000,2002,3000 etc...,, I want to send these values to a procedure as an in parameter. So how it can be solved..? alter procedure DBA.test(in local1 varchar(60)) begin message local1 to client; select * from sample where empid in (local1) ; end I want to call this procedure like this way ... call dba.test('1000,2002,3000') The problem is... I have a big procedure in that previously I used to send a single value but now I want to send a multiple values.. So I need to change a lot of code. thanks in advance chandhu |
#3
| |||
| |||
|
|
Hi ya try this alter procedure DBA.test(in local1 varchar(60)) begin message local1 to client; execute ('select * from sample where empid in (' + local1 + ')') ; end chandrasekhars (AT) i-vantage (DOT) com> a écrit dans le message de news:3fd8a1d2 (AT) forums-1-dub (DOT) .. Hi, I need some help in the below procedure. I have a column in the table empid the values are like 1000,2002,3000 etc...,, I want to send these values to a procedure as an in parameter. So how it can be solved..? alter procedure DBA.test(in local1 varchar(60)) begin message local1 to client; select * from sample where empid in (local1) ; end I want to call this procedure like this way ... call dba.test('1000,2002,3000') The problem is... I have a big procedure in that previously I used to send a single value but now I want to send a multiple values.. So I need to change a lot of code. thanks in advance chandhu |
#4
| |||
| |||
|
|
Hi, I got the error message SELECT retuns more than one row.. Chandhu "Frank" <fmorin (AT) cim-solutions (DOT) net> wrote in message news:3fd8c098 (AT) forums-1-dub (DOT) .. Hi ya try this alter procedure DBA.test(in local1 varchar(60)) begin message local1 to client; execute ('select * from sample where empid in (' + local1 + ')') ; end chandrasekhars (AT) i-vantage (DOT) com> a écrit dans le message de news:3fd8a1d2 (AT) forums-1-dub (DOT) .. Hi, I need some help in the below procedure. I have a column in the table empid the values are like 1000,2002,3000 etc...,, I want to send these values to a procedure as an in parameter. So how it can be solved..? alter procedure DBA.test(in local1 varchar(60)) begin message local1 to client; select * from sample where empid in (local1) ; end I want to call this procedure like this way ... call dba.test('1000,2002,3000') The problem is... I have a big procedure in that previously I used to send a single value but now I want to send a multiple values.. So I need to change a lot of code. thanks in advance chandhu |
![]() |
| Thread Tools | |
| Display Modes | |
| |