0

Is it mandatory to use Autoincrement for a primary key each time?

24th Feb 2017, 6:15 AM
Ashutosh Sharma
Ashutosh Sharma - avatar
1 Resposta
+ 7
no, because the primary key doesn't necessarily have to be a number. it must be unique though. a timestamp for example could also be the primary key. auto increment is useful when using id as primary key.
24th Feb 2017, 6:58 AM
Mario L.
Mario L. - avatar