Hi
I am wondering if i can move a field (with contents) from Table B to Table A. If so how can i do it?
Any advise ?? Thank you very much..
Hi
I am wondering if i can move a field (with contents) from Table B to Table A. If so how can i do it?
Any advise ?? Thank you very much..
Yes — moving a column and its data from one table into another is normal and, as showed (and confirmed), it can be done safely. The basic idea is to add the column to the destination table, copy the values across, verify everything, then remove the old column. The following checklist highlights safe, practical steps and common pitfalls to avoid.
Notes and cautions:
For very large tables or live production systems, consider online schema-change tools (for example, Percona’s pt-online-schema-change) or the copy-and-rename pattern to avoid long locks: pt-online-schema-change. Test the whole process on a copy first.
Jump to Post— network18 15Hi
I am wondering if i can move a field (with contents) from Table B to Table A. If so how can i do it?
Any advise ?? Thank you very much..
yes, you can do it with the PHP Myadmin utility directly.Look for some option in the database for …
Hi
I am wondering if i can move a field (with contents) from Table B to Table A. If so how can i do it?
Any advise ?? Thank you very much..
yes, you can do it with the PHP Myadmin utility directly.Look for some option in the database for copying the field or/and data to some other table in the same or different database.
You can create the same field manually, if there is just one and copy the data like -
UPDATE table1
INNER
JOIN table2
ON table2.something = table1.something
SET table2.field2 = table1.user Thanks.. it works!!
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.