1. 程式人生 > >MySQL中刪除id為最小的資料

MySQL中刪除id為最小的資料

//方法1  delete from 表名 where id in (select id from (select min(id) id from 表名 c1) t1);  //方法2 delete from 表名 order by id asc limit 1;