niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Oracle » Tools
ProC Hosts arrays
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Steve Rainbird
*nix forums beginner


Joined: 02 Nov 2005
Posts: 8

PostPosted: Mon Jul 03, 2006 8:49 am    Post subject: ProC Hosts arrays Reply with quote

I don't know why but proc does not allow 2 dimensional host arrays.

I need to do the following

double col[2][2]

select col_1,col_2,col_3,col_4
into col[1][1],col[1][2],col[2][1],col[2][2]
from etc

But this is not allowed in proc.

Any ideas?

--
Steve

Remove "nospam" from email address to reply to me personally
Back to top
mprzewozny@gmail.com
*nix forums beginner


Joined: 18 Apr 2006
Posts: 4

PostPosted: Wed Jul 05, 2006 3:43 pm    Post subject: Re: ProC Hosts arrays Reply with quote

I would try pointers:

double col[2][2];

exec sql begin declare section;
double *pcol00 = &col[0][0];
double *pcol01 = &col[0][1];
double *pcol10 = &col[1][0];
double *pcol11 = &col[1][1];
exec sql end declare section;

exec sql
select col_1, col_2, col_3, col_4
into :pcol00, :pcol01, :pcol10, :pcol11
from etc;

You can also use bulk fetch to fill the host arrays. That works well if
one of the dimensions is related to cardinality.


Maciej
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Sun Nov 23, 2008 11:41 am | All times are GMT
navigation Forum index » Databases » Oracle » Tools
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Postfix Multiple Relay Hosts? blaze Postfix 0 Wed Jun 25, 2008 5:02 am
No new posts Deliver msg to multiple hosts jures Postfix 2 Fri Feb 29, 2008 4:21 pm
No new posts std::fill arrays cpisz@austin.rr.com C++ 1 Thu Jul 20, 2006 7:25 pm
No new posts redirects in the main server affecting virtual hosts? <Lindsey_Lepisko@cargi Apache 1 Wed Jul 19, 2006 3:43 pm
No new posts Question about arrays.. kiddler C++ 11 Wed Jul 19, 2006 2:54 am

Remortgages | Leopard Geckos | Israel Perry | Loans | Yugioh
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1174s ][ Queries: 16 (0.0493s) ][ GZIP on - Debug on ]