Younger brother, I want to select the value of a column in a row in table 1 and copy it to a column in a row in table 2. what should I do?
Source: Internet
Author: User
I want to select the value of a column in a row in table 1 and copy it to a column in a row in table 2. how can I do this ?? I want to select the value of a column in a row in table 1 and assign a value to a column in a row in table 2. how can I do this ??, What table do you mean by html table or database table ?, Updatetable_asetname = (selectnamefromtable_bwh I want to select the value of a column in a row in table 1 and copy it to a column in a row in table 2. how can I do this ??
I want to select the value of a column in a row in table 1 and assign a value to a column in a row in table 2. how can this problem be solved ??
------ Solution --------------------
The table you are talking about refers to the html table
Or a database table?
------ Solution --------------------
Update table_a set name = (select name from table_ B where id = 1) where id = 2;
What I implement is to update the value segment of id = 2 in table_a to the name value of id = 1 in table_ B.
------ Solution --------------------
Print_r ($ _ SESSION) first to check whether the username is absent.
------ Solution --------------------
Discussion
Print_r ($ _ SESSION) first to check whether the username is absent.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.