9 lines
365 B
SQL
9 lines
365 B
SQL
-- colon before variable: for a prepared statement using named placeholders, this will be a parameter name of the form :name
|
|
|
|
CREATE SCHEMA IF NOT EXISTS :schema;
|
|
SET search_path to :schema, public;
|
|
|
|
---create view
|
|
DROP VIEW IF EXISTS :schema.vw_stops_lt_0 CASCADE;
|
|
CREATE OR REPLACE VIEW :schema.vw_stops_lt_0 AS SELECT * FROM :schema.stops WHERE location_type=0;
|