📅  最后修改于: 2022-03-11 15:05:14.354000             🧑  作者: Mango
$db = JFactory::getDbo();
$sql = "UPDATE TableB SET TableB.value = (SELECT TableA.value FROM TableA WHERE TableA.name = TableB.name);
$db->setQuery($sql);
$result = $db->query();