Dev/Web
이전..다음 글..
newtype
2003. 10. 9. 08:03
'이전 글의 board_idx 값을 구하는 부분
SQL = "Select Min(board_idx) from MyBoard where board_idx > " & board_idx
Set Rs = adoDb.Execute(SQL)
if Not Rs.EOF then
prev_idx = Rs(0)
end if
'다음 글의 board_idx 값을 구하는 부분
SQL = "Select Max(board_idx) from MyBoard where board_idx < " & board_idx
Set Rs = adoDb.Execute(SQL)
if Not Rs.EOF then
next_idx = Rs(0)
end if
이 방법 말구..비용적게 드는 방법없수?
SQL = "Select Min(board_idx) from MyBoard where board_idx > " & board_idx
Set Rs = adoDb.Execute(SQL)
if Not Rs.EOF then
prev_idx = Rs(0)
end if
'다음 글의 board_idx 값을 구하는 부분
SQL = "Select Max(board_idx) from MyBoard where board_idx < " & board_idx
Set Rs = adoDb.Execute(SQL)
if Not Rs.EOF then
next_idx = Rs(0)
end if
이 방법 말구..비용적게 드는 방법없수?
반응형