我已经看到了在尝试重复插入时如何递增列值的问题:insert into table (col, count) values (val1, val2) on duplicate update count=count+val2?> Jerry | 2insert into readers (student, count)values (
ends up being 0
id表的inventory列被设置为自动增量,mysqli_insert_id()可以很好地处理对inventory的其他INSERT查询,这些查询没有插入SELECT语句的结果SELECT语句是否出于某种原因优先作为最后一个查询,这将导致mysqli_insert_id()返回0?