Article View: borland.public.interbase.sql
Article #736Variable Table Name
From: Serra
Date: Tue, 07 Aug 2007 07:03
Date: Tue, 07 Aug 2007 07:03
13 lines
1284 bytes
1284 bytes
IB 6,02 I have 8 tables and i open them with same syntax all tables have same date field ( ODATE ) i dont want to create 8 different s.proc. is it possible to make table name a variable in a s.proc like below ? SELECT * FROM : MYTABLE WHERE ODATE>=(SELECT MAX(ODATE) FROM : MYTABLE) -15 if it is not possible how can i select just last 25 records in a table ? Thank you.
Technical Details
Message-ID:
<46b81945$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,a41d18d74b656c02,start X-Google-Attributes: gid114a0e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Serra" <nomail@nomail.com> Newsgroups: borland.public.interbase.sql Subject: Variable Table Name Date: Tue, 7 Aug 2007 10:03:57 +0300 Lines: 15 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 81.214.131.112 Message-ID: <46b81945$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1186470213 81.214.131.112 (7 Aug 2007 00:03:33 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail