MySQL同时update更新多个表_主板故障raid5数据恢复实

日期:2014-07-13 / 人气: / 来源:网络

(1)
同时更新的多个表之间没关系的:
update table1 t1,table2 t2 set t1.a=1,t2.b=2 where t1.id=1 and t2.id=1

(2)
同时更新的多个表之间存在关系的:
use mytest;
CREATE TABLE tb(id int ,da ta varchar(20));
insert tb values(1,'aaa');
insert tb values(2,'bbb');
insert tb values(3,'ccc');
use test;
CREATE TABLE tb(id int ,da ta varchar(20));
insert tb values(1,'aaa');
insert tb values(2,'bbb');
insert tb values(3,'ccc');
UPDATE mytest.tb,test.tb
    SET mytest.tb.da ta='liangCK',
        test.tb.da ta='liangCK'
WHERE mytest.tb.id=test.tb.id
    AND mytest.tb.id=2;

MySQL管理工具MySQL-front图文使用教程

MySQL-Front安装后,打开。就会看到下面这么一个画面。(当然,如果你是第一次使用,“对话”里面就应该是空的。)这个时间,我们单击新建这个看到的就是添加新对话的对话框。在“一般”选择卡中,只有一个“登陆信息”可以填写,但这个其实只是埴写一个你可

MySQL安装

作者:管理员




现在致电4006-2991-90 OR 查看更多联系方式 →

Go To Top 回顶部