gpt4 book ai didi

mysql : Any command to use instead of mysql_insert_id(); in PHP?

转载 作者:行者123 更新时间:2023-11-29 09:14:48 25 4
gpt4 key购买 nike

我想获取刚刚插入项目的主键 ID。 PHP 中有 mysql_insert_id()。我用 C# 编写

最佳答案

如果 cmd 是您的命令对象,请尝试:

  cmd.LastInsertId;

关于mysql : Any command to use instead of mysql_insert_id(); in PHP?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4479934/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com