📜  mysql查询单行 - SQL代码示例

📅  最后修改于: 2022-03-11 15:05:08.848000             🧑  作者: Mango

代码示例1
$result = mysql_query("SELECT option_value FROM wp_10_options WHERE option_name='homepage' LIMIT 1");
$row = mysql_fetch_assoc($result);
echo $row['option_value'];