This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Originally posted by avihai marchiano: Currently , i neeed to support in MySql and Oracle. The sequence will be writed vendor specific, my question is regarded query the sequence from my java application.
I see. If you only need to support these two databases (as opposed to every database there is), Paul's code will work.