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 -

amazon web services - When using Cognito credentials with AWS in a browser (javascript), keep getting "missing credentials" error -

ember.js - ember-cli / ember-data model unit tests using http-mocks -