Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Interbase 5.5 "Passing an Array into a Stored Procedure"

Posted on 2003-11-18
2
Medium Priority
?
2,712 Views
Last Modified: 2013-12-09
I need to be able to pass in multiple values into a single parameter.

Example

Select EmployeeName
from employee
Where EmployeeID in (:ParameterValues)


Output would be multiple EmployeeNames


I can't seem to define an Input Paramter as an Array and I can't seem to declare a variable as an Array.

The current syntax for the Input Param is:
EmployeeID Integer[10]

The current syntax for the variable declaration is:
Delcare Variable EmpID Integer[10];


I have tried several variations of the above with no luck.

I am using Interbase Version 5.6 on a windows 2000 platform.


Thanks,
matchbx27
0
Comment
Question by:matchbx27
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
chart11610 earned 2000 total points
ID: 9772900
Interbase stored procedures do not support the passing of arrays to the best of my knowledge.  All variable are passed by Value (copy) and must remain language independent.   The SQL gurus that I have worked with over the years try to avoid arrays.  

One possible solution is to store the list of employees in a staging table, and then use that table within the SQL of the stored procedure.
0
 

Author Comment

by:matchbx27
ID: 9772957
A little backgound...

I am currently creating more reports in an Interbase database that came with an application my company purchased.

The Solution you mentioned is the way it is currently being handled.  I don't have alot of confidence in some the work I have seen from the company and their Product.  I just wanted to see if something better, faster was available.


Thanks,
matchbx27
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question