Unix Technical Forum

Re: 4GL question

This is a discussion on Re: 4GL question within the Informix forums, part of the Database Server Software category; --> Howard, Assuming the tables in the various DB all have the same structure - why not create a set ...


Go Back   Unix Technical Forum > Database Server Software > Informix

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 08:04 PM
Rob Vorbroker
 
Posts: n/a
Default Re: 4GL question


Howard, Assuming the tables in the various DB all
have the same structure - why not create a set of
synonyms in one master DB (pick the one that makes
sense) and select from all the tables at once?

Is that an option for you?

Rob Vorbroker
--- Howard Salter <HowardSalter@penningtonseed.com>
wrote:
> Hello all,
>
>
>
> I'm writing a 4GL report, and I need it to span
> several databases that all
> have matching tables and structures, it's just the
> info in the tables that's
> different. I know I could add the database name to
> the FROM statement in
> each of my selects, but I was hoping there was a way
> to do create a DATABASE
> statement using a variable name. That way I wouldn't
> have to change the SQL
> statements and add the CLOSE and FREE statements for
> each cursor and prep
> statement.
>
>
>
> TIA,
>
>
>
> Howard
>
>



=====
Rob Vorbroker Phone: 513/336-8695
Vorbroker Consulting, Inc. Fax: 513/336-6812
www.vorbroker.com robv@vorbroker.com

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
sending to informix-list
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:21 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com