| 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 |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dave Page | 2002-01-15 08:52:48 | Re: pgMigrate |
| Previous Message | Brett Maton | 2002-01-14 15:03:15 | Re: pgMigrate |