M
M
Mikhail Gilmutdinov2020-12-07 20:16:17
MySQL
Mikhail Gilmutdinov, 2020-12-07 20:16:17

How to fix database error (MODIFY `ID` int(11) NOT NULL)?

Help kind people) to understand the essence of how to solve such a problem in the Bitrix database!

Mistake! Mysql Query Error: ALTER TABLE `b_socialservices_user` MODIFY `ID` int(11) NOT NULL auto_increment [Incorrect table definition; there can be only one auto column and it must be defined as a key]

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
ThunderCat, 2020-12-07
@Mixailhr

there can be only one auto column and it must be defined as a key - what exactly is not clear in this phrase?

I
idShura, 2020-12-07
@idShura

Only one column can be auto_increment and must be declared as a key (index or primary key)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question