Last active
January 8, 2018 20:54
-
-
Save drewbanin/4a7faf223398f8618a9828fb55d13519 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create table public.test as ( | |
select 1 as id | |
); | |
-- NOTE: This is a late binding view. Note the | |
-- "WITH NO SCHEMA BINDING" clause at the | |
-- end of the `create view` statement. | |
create view public.test_view as ( | |
select * from public.test | |
) WITH NO SCHEMA BINDING; | |
drop table public.test; | |
-- DROP TABLE ✓ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment