Suppose I have a table with these fields,
card_number int(5)
name varchar(30)
number_of_visits int(5)
I want to increment the number_of_visits each time the card_number is used. And there are many card_numbers in the table.
I need an auto_increment for the number_of_visits which is different for each card_number and which should start with 0 or 1 for each card_number.
Thanks
Nitish