Need help in jdbc feeder


I have to execute a request which stores a code in database and the next request needs that code to be present in the post parameters.
I tried jdbcfeeder but they get executed before the first reqeust. So how do I get the code stored in db ?

Thanks in advance