P
P
P7472020-06-07 04:21:51
PostgreSQL
P747, 2020-06-07 04:21:51

PostgreSQL view modification?

Good afternoon!

How can I modify the sql code-content of a view that already exists? Deleting, making changes affect the base tables of the view?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Melkij, 2020-06-07
@P747

Drop view + create view new. Without cascade, deletion only affects the view itself. So it may be necessary to similarly delete and re-create other functions/views/etc that refer to the mutable view

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question