To get the seed and step values โโof the identity column in SQL server, I can use this syntax
SELECT ColumnName = name, Seed = seed_value, Step = increment_value
FROM sys.identity_columns
So far in MySql, I have found that if I use this syntax
SELECT * FROM INFORMATION_SCHEMA.TABLES
WHERE auto_increment IS NOT NULL
I can at least find out which columns are identity ...
The question is, how can I get the SEED and STEP values โโof the identity column from the MySQL schema.
source
share