AS
当我删除该子句时,此 SQL 查询运行良好。
$query = "SELECT bd_brushname FROM tbl_brushdescription WHERE MATCH(bd_brushname, bd_brushdescription) AGAINST ('brushes' IN BOOLEAN MODE) AS rank";
$sqlquery = mysql_query($query);
if($sqlquery === FALSE){
die(mysql_error());
}
当我使用时AS
,它说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 'AS rank' at line 1
有人可以告诉我为什么它不起作用吗?