Re: pgMigrate - Mailing list pgadmin-hackers

From Brett Maton
Subject Re: pgMigrate
Date
Msg-id F2083s25UE9chbN2tEw0001bfdb@hotmail.com
Whole thread Raw
In response to pgMigrate  ("Brett Maton" <matonb@hotmail.com>)
List 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:

Previous
From: "Brett Maton"
Date:
Subject: Re: pgMigrate
Next
From: Dave Page
Date:
Subject: Re: pgMigrate