简体   繁体   English

在使用 php 同时按 id 在 mysql 中删除之前,在另一个表中插入旧数据

[英]insert old data on another table before deleting in mysql using php at the same time by id

让我有两个包含一些数据的表 & 每当我从表中删除数据时,我希望我删除的数据使用按 id 插入查询插入到我的备份表中。你们能帮帮我吗......说我工作查询。

单击删除时:获取 id -> 转到 db -> 使用 id 获取条目 -> 将其添加到 back_up 表中 -> 然后在上一个表上执行删除查询...

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在mysql中使用php插入动态输入值将一张表同时复制到另一张表 - How to insert dynamic input values copy one table to another table at the same time in mysql using php PHP MySQL使用where子句INSERT来自另一个表的数据,并将唯一值插入到相同的行中 - PHP MySQL INSERT data from another table using the where clause and insert unique values to the same rows 如何使用php mysql将行ID插入另一个表字段? - How to insert row id to another table field using php mysql? 如何使用 php 和 mySQL 获取客户 ID 并将其插入另一个表 - How to get customer ID and insert it into another table using php and mySQL php mysql如何使用mysql_insert_id()能够同时插入2个表中? - php mysql how to use mysql_insert_id() to be able to insert into 2 table at the same time? 当第二个表的 id 依赖于第一个表时,使用 php 一次插入两个表 - Insert two table at a time mysql using php when id of second table is depend on first table 将数据从旧表移动到另一个表PHP MYSQL - Moving of data from old table to another table PHP MYSQL 如何从一个表数据复制列到另一表并在mysql中同时插入更多列? - how to copy column from one table data to another table and insert more columns same time in mysql? 如何将ID从1个表同时插入另一个表? - How to insert the id from 1 table to another at the same time? 如何使用 php mysql 在表中插入 last_insert_id 作为多个数据? - How to insert last_insert_id as multiple data in a table using php mysql?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM