|
 |
|
mysql copy ข้อมูล จาก field นึงไปอีก field นึง ผมต้องการ copy ข้อมูลใน field A ไปยัง filed B |
|
 |
|
|
 |
 |
|
CREATE TABLE `aaa`.`bbb` (
`id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
`username` VARCHAR( 50 ) COLLATE utf8_unicode_ci NOT NULL ,
`password` VARCHAR( 50 ) COLLATE utf8_unicode_ci NOT NULL ,
`name` VARCHAR( 255 ) COLLATE utf8_unicode_ci NOT NULL ,
`email` VARCHAR( 100 ) COLLATE utf8_unicode_ci NOT NULL ,
`level` TINYINT( 4 ) NOT NULL DEFAULT '0',
PRIMARY KEY ( `id` ) ,
KEY `id` ( `id` ) ,
KEY `username` ( `username` ) ,
KEY `password` ( `password` ) ,
KEY `level` ( `level` )
) ENGINE = MYISAM DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci;
INSERT INTO `aaa`.`bbb`
SELECT *
FROM `aaa`.`web_admin` ;
สมมุตินะครับ สมมุติ
|
 |
 |
 |
 |
Date :
2009-06-03 11:56:59 |
By :
deawx |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณครับพี่ win
คราวที่แล้วผมโง่ไปทีนึง
ไป select ข้อมูลจาก field A แล้วค่อยมา insert ลง field B อีกที
เหอๆ อายตัวเอง
|
 |
 |
 |
 |
Date :
2009-06-03 12:50:01 |
By :
ttong |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เพิ่งรู้ว่า มันสามารถ รวม ฟิวกันได้ด้วย 
|
 |
 |
 |
 |
Date :
2009-06-03 16:21:03 |
By :
ail2geal2 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 02
|