If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Sybase > pass in arrays as parameter in stored procedure

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-13-10, 01:00
tiger66 tiger66 is offline
Registered User
 
Join Date: Dec 2007
Posts: 32
pass in arrays as parameter in stored procedure

Hi
I have an array of values in java
ie
[name, type]
[Bob, 1]
[Sandy,2]
[Tom, 3]

I found out that sybase doesn't support array as paramenter and I need to construct the values into a string 'Bob,Sandy,Tom','1,2,3'

I am just wondering, once I pass the strings into the stored procedure, is there an easy way to store the string in a temp table like
Bob, 1
Sandy,2
Tom,3

Thanks in advance for your help
Reply With Quote
  #2 (permalink)  
Old 08-13-10, 04:27
hobbylu hobbylu is offline
Registered User
 
Join Date: Nov 2002
Posts: 21
Deal it in java
Reply With Quote
  #3 (permalink)  
Old 08-14-10, 12:30
tiger66 tiger66 is offline
Registered User
 
Join Date: Dec 2007
Posts: 32
Is there a way to do it in stored procedure?
I am not allow to do it in java
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On