INSERT and SELECT in single query MySQL

后端 未结 4 645
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-20 07:02

How can I do one single query with both an INSERT and SELECT in it and then read the results of selection? I want to insert and then select something, all must be d

4条回答
  •  天命终不由人
    2020-12-20 07:18

    I wouldn't recommend this either but you can use pdo to do this as shown in this thread: PDO support for multiple queries (PDO_MYSQL, PDO_MYSQLND)

提交回复
热议问题