D
D
Dmitry2018-03-21 18:37:38
MySQL
Dmitry, 2018-03-21 18:37:38

How to copy an auto-increment id to another field of an inserted record?

records are displayed on the page sorted by `cat_order`
users can change `cat_order` of neighboring records in order to set the desired order of output it is
necessary that when creating a new record `cat_order` contain the same number as in the auto-increment field `cat_id`
copy in the insert query and not after if not clear

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Korobkov, 2018-03-21
@BorisKorobkov

RTFM https://dev.mysql.com/doc/refman/5.7/en/informatio...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question