Is there any way to manage sub-sequence with composite primary key table, rather than using "LOCK TABLE and get max(id)" or making table
LOCK TABLE
max(id)