Home > Backend Development > PHP Tutorial > 小弟我想选取表1中某行某列的值,然后复制给表2中某行某列如何做?

小弟我想选取表1中某行某列的值,然后复制给表2中某行某列如何做?

WBOY
Release: 2016-06-13 13:17:01
Original
708 people have browsed it

我想选取表1中某行某列的值,然后复制给表2中某行某列怎么做??
我想选取表1中某行某列的值,然后赋值给表2中某行某列怎么做??

------解决方案--------------------
你所说的表指的是html的table
还是数据库的表?
------解决方案--------------------
update table_a set name=(select name from table_b where id=1) where id=2;
我实现的是,将table_a中id=2的name的值段,更新为table_b中id=1的name值
------解决方案--------------------
先print_r($_SESSION),看username到底在不在
------解决方案--------------------

探讨

先print_r($_SESSION),看username到底在不在
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