Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Martyn Shiner, on IDS 7.20.UE2, asked how to find the SQL that created a view and whether it can be edited. Obnoxio The Clown suggested dbschema, then dropping and recreating the view. Flavio Gattari gave a query joining systables and sysviews to list view text (viewtext by seqno). Martyn said he would try it.
Auto-generated by Claude from the posts below — may be imperfect; read the full thread.
Martyn Shiner — — source: Informix-list mailing list archive (1991-1998)
I have a db that has several views (virtual tables) set up. How do I find
out what the SQL statment is that created the view? Can I edit this or do I
have to drop the table and set it up again?
Informix version is 7.20.UE2
Regards
Martyn
↪ replying to Martyn Shiner
Obnoxio The Clown — — source: Informix-list mailing list archive (1991-1998)
In the year of Our Lord Thu, 15 Feb 2001 12:07:56 -0000, "Martyn Shiner"
<nospammartyn.shiner@nospambff-nonwovens.com> spake, saying:
>I have a db that has several views (virtual tables) set up. How do I find
>out what the SQL statment is that created the view? Can I edit this or do I
>have to drop the table and set it up again?
dbschema?
Drop and recreate.
↪ replying to Martyn Shiner
Flavio Gattari — — source: Informix-list mailing list archive (1991-1998)
Martyn Shiner ha scritto nel messaggio <96ggo6$1qm9$1@slrn.eurobell.net>...
>I have a db that has several views (virtual tables) set up. How do I find
>out what the SQL statment is that created the view? Can I edit this or do I
>have to drop the table and set it up again?
>
>Informix version is 7.20.UE2
>
>Regards
>Martyn
>
>
>
>
select a.tabname, b.seqno , b.viewtext
from systables a, sysviews b
where a.tabid = b.tabid
and a.tabid > 99
order by 1, 2
it gives you all your views text; you can filter it by view name
flavio gattari
↪ replying to Flavio Gattari
Martyn Shiner — — source: Informix-list mailing list archive (1991-1998)
Thanks for that - I'll give it a try
Martyn
Flavio Gattari <fgattari@datamat.it> wrote in message
news:96gqc1$5a7u$1@stargate1.inet.it...
>
> Martyn Shiner ha scritto nel messaggio
<96ggo6$1qm9$1@slrn.eurobell.net>...
> >I have a db that has several views (virtual tables) set up. How do I find
> >out what the SQL statment is that created the view? Can I edit this or do
I
> >have to drop the table and set it up again?
> >
> >Informix version is 7.20.UE2
> >
> >Regards
> >Martyn
> >
> >
> >
> >
>
> select a.tabname, b.seqno , b.viewtext
> from systables a, sysviews b
> where a.tabid = b.tabid
> and a.tabid > 99
> order by 1, 2>
> it gives you all your views text; you can filter it by view name
>
> flavio gattari
>
>
>
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.