Carlos kambui

Carlos kambui

  • NA
  • 499
  • 125.8k

Add columns

May 29 2015 4:05 AM
i have student  table and student_id is primary key ,there is another column adm_no and i want when i admit new student adm_no increment by one without skipping i.e 1001 ,1002 etc 
int x = 0;
x = x + 1;
tStudent.adm_no = Convert.ToInt32(txtadm.Text) + x;
i have the above code but not working .
any assistant will be highly appreciated 
 

Answers (9)