select id,
       id as disp_sort,
       j_dealer_group_name as disp_name,
       j_dealer_group_name as j_name,
       e_dealer_group_name as e_name,
       NULL as kana_name,
       cutoff_date as cutoff_date_code,
       NULL as note,
       0 as invalid_flag_code,
       NULL as deleted_at,
       NOW() as created_at,
       NOW() as updated_at
FROM dealer_groups
INTO OUTFILE "/tmp/customer_groups.csv" FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"';