[英]how to copy column from one table data to another table and insert more columns same time in mysql?
[英]how to copy one column to another with data in mysql on same table?
我有一個user_master表。 對於所有那些備用地址不可用的用戶,我需要將用戶的第一個地址復制到備用地址列。
只需使用更新表查詢即可。 請在下面檢查。
UPDATE users_master SET alt_address = first_address WHERE alt_address = '';
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.