procedures - How to get previous row data by using SQL? -


here table example


main_cd code
1 aa

1 bb

1 cc

2 1231

2 1232

.

that table have lots of data. use main_cd "1" (other data other pages cannot delete it)

my question if got value of "cc". want sent pre_data ("aa") , next data ("cc")

also if got value of "cc", pre_data "bb" , next_data "aa"


Comments

Popular posts from this blog

javascript - IndexedDB error: Uncaught DataCloneError: Failed to execute 'put' on 'IDBObjectStore': An object could not be cloned -

java - Unable to make sub reports with Jasper -

Integrity error when loading fixtures for Selenium testing in Django -