I created a table of five columns as follows
crop_id, crop_type, crop_name, cultivation_yrs , local_name.
I want to make the crop_id to be the primary key, and also to be autoincremental as well as serve as a reference to a foreign key in the main database table which is a different table altogerther.
I am able to create the primary key and the foreign key but i am not able to achieve the autoincrement
Please how can i achieve this.
crop_id, crop_type, crop_name, cultivation_yrs , local_name.
I want to make the crop_id to be the primary key, and also to be autoincremental as well as serve as a reference to a foreign key in the main database table which is a different table altogerther.
I am able to create the primary key and the foreign key but i am not able to achieve the autoincrement
Please how can i achieve this.
Comment