create view vi_car_data as SELECT APZL.LB_CARDATA_MODEL.ID         AS ID,
       APZL.LB_CARDATA_MODEL.BRANDID    AS BRANDID,
       APZL.LB_CARDATA_MODEL.BRANDNAME  AS BRANDNAME,
       APZL.LB_CARDATA_MODEL.SERIESID   AS SERIESID,
       APZL.LB_CARDATA_MODEL.SERIESNAME AS SERIESNAME,
       APZL.LB_CARDATA_MODEL.MODELID    AS MODELID,
       APZL.LB_CARDATA_MODEL.MODELNAME  AS MODELNAME,
       APZL.LB_CARDATA_MODEL.PRICE      AS PRICE,
       APZL.LB_CARDATA_MODEL.LITER      AS LITER,
       APZL.LB_CARDATA_MODEL.GEARTYPE   AS GEARTYPE,
       APZL.LB_CARDATA_MODEL.MODELYEAR  AS MODELYEAR,
       '乘用车'                            AS CARTYPE
FROM APZL.LB_CARDATA_MODEL
UNION ALL
SELECT APZL.LB_CARDATA_COMMERCIAL_MODEL.ID          AS ID,
       APZL.LB_CARDATA_COMMERCIAL_MODEL.BRAND_ID    AS BRAND_ID,
       APZL.LB_CARDATA_COMMERCIAL_MODEL.BRAND_NAME  AS BRAND_NAME,
       APZL.LB_CARDATA_COMMERCIAL_MODEL.SERIES_ID   AS SERIES_ID,
       APZL.LB_CARDATA_COMMERCIAL_MODEL.SERIES_NAME AS SERIES_NAME,
       APZL.LB_CARDATA_COMMERCIAL_MODEL.MODEL_ID    AS MODEL_ID,
       APZL.LB_CARDATA_COMMERCIAL_MODEL.MODEL_NAME  AS MODEL_NAME,
       APZL.LB_CARDATA_COMMERCIAL_MODEL.PRICE       AS PRICE,
       APZL.LB_CARDATA_COMMERCIAL_MODEL.LITER       AS LITER,
       ''                                           AS MODELYEAR,
       ''                                           AS NAME_EXP_18,
       '商用车'                                        AS CARTYPE
FROM APZL.LB_CARDATA_COMMERCIAL_MODEL;

