I want to select a column of a row in table 1, and then copy it to a row in table 2.

Source: Internet
Author: User
I want to select a column of a row in table 1 and then copy it to a row in table 2.
I want to select a column of a row in table 1 and assign a value to a column in table 2.

------Solution--------------------
The table you're referring to is HTML.
Or a table for a database?
------Solution--------------------
Update table_a set name= (select name from Table_b where id=1) where id=2;
I realized that the value segment of id=2 name in Table_a is updated to the name value of id=1 in Table_b
------Solution--------------------
First Print_r ($_session), see username is not in the end
------Solution--------------------
Explore

First Print_r ($_session), see username is not in the end
  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.