我有这样的php脚本
$query = "select * where userid = 'agusza' ";
$result = mysql_query($query) or die(mysql_error());
while($row=mysql_fetch_array($result)) {
echo $result;
}
当我执行时,结果是这样的
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where userid = 'agusza'' at line 1
但是当我在 sqlserver 中运行该 sql 时,它运行良好 有人有解决方案吗?