问题 I have a handful of raw SQL queries for SQL Server which use SCOPE_IDENTITY to retrieve the generated ID for a specific INSERT immediately after that INSERT occurs all in one execution… INSERT into Batch( BatchName, BatchType, Source, Area ) Values ( @strBatchName, @strType, @strSource, @intArea ); SELECT SCOPE_IDENTITY() BatchID; The question is: What’s the best way to do that for an Oracle database? Can this be done on Oracle through standard SQL or do I have to switch this to use a stored