[DiscordArchive] Hello, is it possible to get last created ID after executing WorldDatabasePreparedStatement insert S
[DiscordArchive] Hello, is it possible to get last created ID after executing WorldDatabasePreparedStatement insert S
Archived author: Vel • Posted: 2023-02-23T16:53:02.457000+00:00
Original source
Hello, is it possible to get last created ID after executing WorldDatabasePreparedStatement insert SQL?
Archived author: Tea • Posted: 2023-02-23T17:01:46.929000+00:00
Original source
maybe if you try using QueryHolder with 2 queries, first being the insert and second being `SELECT LAST_INSERT_ID()`
Archived author: Tea • Posted: 2023-02-23T17:03:47.101000+00:00
Original source
the reason im suggesting QueryHolder is that its the only way to get a result while ensuring that both statements execute on the same connection