开发者

How to add another field in an existing table in mysql

开发者 https://www.devze.com 2023-03-11 22:24 出处:网络
Okay, I have these table and I also have another table right here: So,idAlbum is in the gallery table, what is the query for this?

Okay, I have these table

How to add another field in an existing table in mysql

and I also have another table right here:

How to add another field in an existing table in mysql

So,idAlbum is in the gallery table, what is the query for this? I want to select the data from one field in one table and insert开发者_JAVA技巧 it into a field in another table.


If you want to add a field in existing table in PhpMyAdmin, click "Structure" tab while viewing its data, and at the bottom of table structure you have nice box: "Add [number] fields at the [beginning / ending] of a table. Click the button on the right and processd with forms.


INSERT INTO tbl_temp2 (fld_id)
 SELECT tbl_temp1.fld_order_id
 FROM tbl_temp1 WHERE tbl_temp1.fld_order_id > 100;
0

精彩评论

暂无评论...
验证码 换一张
取 消