我正在尝试在Ubuntu上安装Rails,但它显示以下错误:
ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions into the /var/lib/gems/1.9.1 directory.
请帮我安装Rails gem。
答案 0 :(得分:1)
while ($row = $result->fetch_assoc()) {
echo "Name: " . $row["CID"];
echo " <br>";
$avg = $row["AVG(CQ1)"];
$name = $row["CID"];
$sql = "UPDATE CES2_RESULTS_UA SET CQ1 = $avg WHERE CID = '$name'";