Hello. I apologize, I do not know how to express myself correctly, therefore I describe in simple words what I want.
Suppose there is a format table in the database.
[ΡΠΈΡΠ»ΠΎ ID] [ΡΠ΅ΠΊΡΡ ΠΠΌΡ] [ΡΠ΅ΠΊΡΡ Π€Π°ΠΌΠΈΠ»ΠΈΡ]
I need to increase by 1 when adding a new record
That is, for example, entries in the table
[id = 0] [ΠΠΌΡ = ΠΠ»Π΅ΠΊΡΠ΅ΠΉ] [Π€Π°ΠΌΠΈΠ»ΠΈΡ = ΠΠ΅Π½Π°Π·Π²Π°Π½Π½ΡΠΉ] [id = 1] [ΠΠΌΡ = ΠΠ²Π³Π΅Π½ΠΈΠΉ] [Π€Π°ΠΌΠΈΠ»ΠΈΡ = ΠΠ°Π·Π²Π°Π½Π½ΡΠΉ] [id = 2] [ΠΠΌΡ = Π€ΡΠ΄ΠΎΡ] [Π€Π°ΠΌΠΈΠ»ΠΈΡ = ΠΠ΅ΠΈΠ·Π²Π΅ΡΡΠ½ΡΠΉ]
And I want to add a new entry to the Id
field to add the number +1 from the previous entry
How to make a request to add a record shorter?
respectfully