Forum Moderators: open
As an example of what I've written:
CREATE PROC example_procedure(
@mon int
,@num int
,@list varchar(1000))
as
select *
from the_table
where number = num and month = @mon
AND customer IN (@list)
group by date,total_users
order by date
RETURN
GO
But I get an error from @list because it percieves the list variable as more than one variable.
Some solutions here too:
Passing Arrays to Stored Procedures [vyaskn.tripod.com]
[edited by: aspdaddy at 4:36 pm (utc) on Mar. 27, 2006]
But this gives me the following error (error message copied from PHP execution):
Warning: sybase_query(): Sybase: Server message: Procedure or function example_procedure has too many arguments specified.