I am trying to create a system to let my users do some Ad Hoc querying of
their database and I found a nifty program to do it. Unfortunately it was
written with a MS SQL database in mind (I guess) so I have no clue how to
translate the SQL statements that pull tables and columns to one that
PostgreSQL will understand. I've posted it below...can anyone point me in
the right direction for what translates to what? This is the original SQL
statement, which doesn't work in PostgreSQL.
select sysobjects.id as tableid,
syscolumns.id as columnid,
sysobjects.name as tablename,
syscolumns.name as colname,
systypes.name as typename
where sysobjects.id = syscolumns.id and systypes.name <> 'sysname'
and sysobjects.name <> 'dtproperties'
order by tablename,colorder
Summer S. Wilson ICQ 26835530
Programmer/Analyst I, EIT TCE
Webmaster, An Eclectic World (http://eclectic-world.com)
Editor, EZLearnPhotography (http://www.ezlearnphotography.com)
pgsql-novice by date
|Next:||From: Josh Berkus||Date: 2002-01-25 16:32:27|
|Subject: Re: Porting existing postgresql databases to another|
|Previous:||From: Brian Johnson||Date: 2002-01-25 16:10:11|
|Subject: Porting existing postgresql databases to another machine|