我有类似的东西,$SQL = "SELECT * FROM profile_comments WHERE name = '$username' LIMIT $offset, $rowsperpage";
但我想知道是否可以仅针对某一列的空行限制结果?
示例
$SQL = "SELECT * FROM profile_comments WHERE name = '$username' LIMIT table is NULL 5, 10";
profile_comments
id | parent_id | name | text | datetime
-------------------------------------------------
1 | null | Netra | Bla bla | 00.00.0000
2 | 1 | Netra | Bla bla | 00.00.0000
3 | 1 | Netra | Bla bla | 00.00.0000
4 | null | Netra | Bla bla | 00.00.0000
5 | 4 | Netra | Bla bla | 00.00.0000