BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SQL Syntax -Question about UNION

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Erich Wanker
Guest





PostPosted: Mon Apr 18, 2005 4:25 pm    Post subject: SQL Syntax -Question about UNION Reply with quote



Question:

i have a lot of tables (i donīt know how mutch..)
and want to find a special field in all Tables.

every Table has the fields number,pid,searchfield.... and different other
fields
every Table name is written in my AllTableNames - Table ;-)

________________________________
SqlText:=" select field from "

for x= 1 to AlltableNames.recordcount
begin
SqlText = SqlText + Tablename+ " and"
end;

SqlText = SqlText +" order by xy"
_________________________________

Can somebody post me a demo-Statement please?
I want find all Rows with Pid as "T" over all Tables
How long can a sql-Syntax be ? (256 Chars?-when i have a problem...)

--
Contact:
Erich Wanker | www .sec. at | wanker @ sec.at

Using:
Delphi7 | Jedi | Reportbuilder | LmdTools | Zeos | InfoPower | RXLib |

The Awful Truth:
We are Microsoft. Resistance Is Futile. You Will Be Assimilated


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.