sql 从另外一张表查询数据存入本表. (有关联的)

UPDATE friends INNER JOIN users ON friends.friendid=users.userid

SET friends.friendname=users.username 

posted @ 2015-01-09 14:18  NewObject_1  阅读(296)  评论(0编辑  收藏  举报