高手帮忙看看, 求一句mysql的语句 能不能用update set select 来填custmer_from的列。值从上一行的custmer_to取。 前提是相同custmer_ID。多谢啦! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://i.6.cn/cvbnm/10/f4/c4/d8dd495d39779f7455efeda52bb6d039.png看的到吗? http://i.6.cn/cvbnm/10/f4/c4/d8dd495d39779f7455efeda52bb6d039.png update t5 a, t5 b set a.customer_from = b.customer_to where b.id=a.id-1;但是你的图中,有很多是空的,是你故意留空还是同时要达到那种效果? update userinfo A join userinfo B on A.customer_id=B.customerid_uidset A.customer_from=B.customer_towhere B.id=a.id-1 A.customer_fromB.customer_toA B 指的是什么啊, 是不是2个table B.customerid_uid 还是 B.customer_id 紧急求助!mysql收回权限后任何机器都不能访问 用rpm包把MySQL 5.1升级到5.5具体应该怎么做? 带有自动增长列的数据库,如何插入数据? mysql双机热备,热切换问题 mysql全文搜索的问题 高手帮忙,求SQL 如何改变LONGBLOG字段的大小 菜鸟试飞~! 请问一个关于mysql的insect问题! 50分~! 请教SQL语句实现 搜索某段时间内的记录条数? mysql 的sql语法错误提示能智能一些吗? Innodb主键COUNT和第二索引COUNT问题 mysql中怎么设置字符集
http://i.6.cn/cvbnm/10/f4/c4/d8dd495d39779f7455efeda52bb6d039.png看的到吗?
update userinfo A join userinfo B on A.customer_id=B.customerid_uid
set A.customer_from=B.customer_to
where B.id=a.id-1
B.customer_toA B 指的是什么啊, 是不是2个table
B.customerid_uid 还是 B.customer_id