Wednesday, 7 August 2013

creating two tables in Mysql where id's of second table must fallow first table?

creating two tables in Mysql where id's of second table must fallow first
table?

I think this is not the right way to post. I have created tables in Mysql
and i retrieved them properly. But now i got a problem for my application.
What i need is The second table id's must fallow first table id's.For
example if the first table is having 5 products the id's will be
1,2,3,4,5. And I created second table where it contains three products
there Id's are 1,2,3.
But
i need to get Second table id's as 6,7,8.
Can any suggest me .Actually i am new to mysql I don't know about all the
queries. Thanks in advance

No comments:

Post a Comment