View

  1. 정의

    1. 데이터를 보여주기만 하는 일종의 가상의 테이블
    2. 따라서 SELECT 외 SQL(INSERT, DELETE, UPDATE)는 제한된다
  2. 사용법

    CREATE VIEW `equip_stat_view` AS
    SELECT equipment_stat.item_id, equipment_stat.equip_stat_id, equipment_stat.equip_stat_amount, stat.stat_name_kr, stat.stat_name_en, stat.stat_description_kr, stat.stat_description_en 
    FROM equipment_stat 
    LEFT JOIN stat 
    ON equipment_stat.equip_stat_id = stat.stat_id 
    ORDER BY equipment_stat.item_id;