how to get LAST_INSERT_ID via stored procedure in php

前端 未结 1 746

say i have a stored procedure in mysql like below

-- ----------------------------
-- Procedure structure for usp_insert_user_basic_info
-- ------------------         


        
相关标签:
1条回答
  • 2021-01-19 18:22

    You can get last insert id like this in SP:

    DECLARE LID int;
    
    SET LID = LAST_INSERT_ID();
    
    0 讨论(0)
提交回复
热议问题