The difference of two date values that are stored in the table is calculated and brought to the next column. My SQl Command Here
UPDATE skuser SET count_day=date-paydate WHEREisactive=0
The difference of two date values that are stored in the table is calculated and brought to the next column. My SQl Command Here
UPDATE skuser SET count_day=date-paydate WHEREisactive=0
UPDATE skuser SET count_day=timestampdiff(day,date,paydate) WHEREisactive=1