How to get auto increment work on NAVICAT
-
13-06-2021 - |
Question
I am using NAVICAT to make tables for MYSQL and I am unable to find the auto-increment attribute option for my primary key column.
id integer(10)(auto_increment)primary key
Anyone pls help me out!
Solution
I'm not familiar with NAVICAT but if you can run SQL statements directly, try this:
ALTER TABLE `yourTable` CHANGE `id` `id` INT(10) NOT NULL AUTO_INCREMENT
Full docs here.
OTHER TIPS
As reported there is an auto increment checkbox in Navicat, but you have to create an integer key before, save the operation, and reselect the field, now on the bottom area the auto increment checkbox will appear.
I am using Navicat (10.1.0 Mac) Enterprise. In the table creation dialog, there is a checkbox for auto increment
which should do the thing that you are looking for.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow