1. 뷰 삭제


DROP VIEW myview;



2. 뷰 생성


CREATE VIEW myview AS

  SELECT city, temp_lo, temp_hi, prcp, date, location

  FROM weather, cities

  WHERE city = name;



3. 뷰 조회


SELECT * from myview;


반응형

+ Recent posts