HF RL Explorer

Task: Retrieve Auto-Generated ID After INSERT in Python Database Operations

Task: Retrieve Auto-Generated ID After INSERT in Python Database Operations: a task in Terminal-Lego-15k (Harbor dataset). When inserting data into a database table with an auto-incrementing primary key, it's often necessary to retrieve the ID of the newly inserted row immediately after the INSERT…

The task

When inserting data into a database table with an auto-incrementing primary key, it's often necessary to retrieve the ID of the newly inserted row immediately after the INSERT operation. This is a common requirement for maintaining relationships between tables or returning the new record's identifier to the user.

Part of PrimeIntellect/Terminal-Lego-15k.