Home > Backend Development > PHP Tutorial > Sql中如何同时更新多个表的数据

Sql中如何同时更新多个表的数据

WBOY
Release: 2016-06-23 13:49:45
Original
1699 people have browsed it

请举例说明这样的例子。谢谢


回复讨论(解决方案)

一个一个 update 就是了

如果一个数据的改动就需要操控多个表的话,显然是你的表设计是有问题的

表关联(Join)、  触发器 、事务、update  表1,表2..
可以去百度一下,哪个不懂再问

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template