mysql查詢昨天以前,mysql怎么查詢一條記錄的前一條記錄和后一條記錄?
上一條:select*from表where數(shù)據(jù)id<@當(dāng)前顯示數(shù)據(jù)idorderby數(shù)據(jù)_idasc)limit1下一條:select*from表where數(shù)據(jù)id>@當(dāng)前顯示數(shù)據(jù)idorderby數(shù)據(jù)_iddesc)limit1mysql里面不支持selecttop
上一條:select*from表where數(shù)據(jù)id<@當(dāng)前顯示數(shù)據(jù)idorderby數(shù)據(jù)_idasc)limit1下一條:select*from表where數(shù)據(jù)id>@當(dāng)前顯示數(shù)據(jù)idorderby數(shù)據(jù)_iddesc)limit1mysql里面不支持selecttop