Tuesday, January 21, 2020

Re: some value for primary key

you could do that in the database with a mysql statement.


ALTER TABLE tbl AUTO_INCREMENT = 7777; 
               
 


On Wed, Jan 22, 2020 at 12:03 AM Soumen Khatua <soumenkhatua258@gmail.com> wrote:
Hi Folks,

I want to start my primary key from saome random number like: 7777(onwards)
but not from 1. How I can do that in django?

Thank you in advance

Regards,
Soumen

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPUw6Wbrnst2pAkdCZp%2B2jd4etsYGE_o%2BBO%2BAc85TPeyG92a3A%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABOHK3SAx5f5%3DUSKQoXisUytXfjHN2ZVKkFpFuerxvdrPh308A%40mail.gmail.com.

No comments:

Post a Comment