mysql select * from tl_in_manual_company_business_data order by dim_id desc limit 1; oracle select * from (select * from tl_in_manual_company_business_data order by dim_id desc) where rownum=1;