mysql_insert_id with update

后端 未结 2 623
无人及你
无人及你 2021-01-29 12:34

After executing the query below I use the PHP function mysql_insert_id() and it always gives me 0.

UPDATE 
    tbl_training_types 
SET 
    fld_seri         


        
2条回答
  •  南方客
    南方客 (楼主)
    2021-01-29 13:02

    Return Values

    The ID generated for an AUTO_INCREMENT column by the previous query on success, 0 if the previous query does not generate an AUTO_INCREMENT value, or FALSE if no MySQL connection was established.

    Source PHP Manual

提交回复
热议问题