Skip site navigation (1) Skip section navigation (2)

Re: pgMigrate

From: "Brett Maton" <matonb(at)hotmail(dot)com>
To: dpage(at)vale-housing(dot)co(dot)uk
Cc: pgadmin-hackers(at)postgresql(dot)org
Subject: Re: pgMigrate
Date: 2002-01-14 17:23:19
Message-ID: F2083s25UE9chbN2tEw0001bfdb@hotmail.com (view raw or flat)
Thread:
Lists: pgadmin-hackers
Hi Dave,

  Found it !

  I've been playing around with the views stuff this afternoon and this is 
what I found out:

  There is a View object in the catalog catLocal which can be accessed like 
so

  Dim viewTemp As View
  For Each viewTemp In catLocal.Views
    szString = viewTemp.Command.CommandText()
    app.LogEvent "SQL : '" & szString & "'\n\n"
  Next


and ya get something like this:

'SELECT myTable.myField1, myTable.myField2, myTable.myField3, etc etc FROM 
myTable
WHERE (((MyTable.Fieldn)="whatever"));


Hope this helps with the view stuff,  (starting to get the hang of VB :>)

Regards, Brett


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


pgadmin-hackers by date

Next:From: Dave PageDate: 2002-01-15 08:52:48
Subject: Re: pgMigrate
Previous:From: Brett MatonDate: 2002-01-14 15:03:15
Subject: Re: pgMigrate

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group