sql >> Database teknologi >  >> RDS >> Oracle

Få ID for sidst indsatte post i oracle db

Brug PL/SQL RETURNING klausul:

insert into mytable (...) values (...)
returning id into v_id;



  1. Brug DB_ID() til at returnere id'et for en database i SQL Server

  2. Hibernate, Postgres &Array Type

  3. Ingen Entity Framework-udbyder fundet for 'MySql.Data.MySqlClient' ADO.NET-udbyder

  4. DefType Statements i VBA:The Dark Side of Backward Compatibility