$sql="select id,title,posttime,top from article where parent=0 limit 0,10";
$query=mysql_query($sql);
但是我想从表中取出所有的top而不是只限制10条
即相当于
$sql="select top from article where parent=0"; //没有limit 0,10
这两句合为一句该怎么写???
...全文
1711打赏收藏
象我这样,用sql语句该怎么写?
$sql="select id,title,posttime,top from article where parent=0 limit 0,10"; $query=mysql_query($sql); 但是我想从表中取出所有的top而不是只限制10条 即相当于 $sql="select top from article where parent=0"; //没有limit 0,10 这两句合为一句该怎么写???