SQLの実行に失敗しました
SELECT tbl_ownerreport.report_id
,brand_cd
,car_cd
,grade_cd
,brand_nm
,car_nm
,grade_nm
,new_old
,picture_name
,handlename
,comment
,user_id
,insert_date
,goopassport_id
,to_char(insert_date, 'YYYY/MM/DD') as insert_date_format
,to_char(insert_date , 'YYYYMMDD' ) as new_ico_flag
,syear
FROM tbl_ownerreport
WHERE brand_cd in ()
AND delete_flag = 0
ORDER BY insert_date DESC LIMIT 4;
|