```sql
insert into table (col1) values(c1), values(c2)
```
last_isert_id 返回的是最小值,max(id) 又不是线程安全的。
目前想到的方法是用 last_insert_id 与插入的数量做运算。
不知道有没有原生 mysql 就支持的函数可以用的?
insert into table (col1) values(c1), values(c2)
```
last_isert_id 返回的是最小值,max(id) 又不是线程安全的。
目前想到的方法是用 last_insert_id 与插入的数量做运算。
不知道有没有原生 mysql 就支持的函数可以用的?

