I'm currently doing a student attendance program using c# and MySQL.
I created a database called std_info
where it keeps students information and there are nibm_id, nic, name,address,number,batch
in that table
2nd table name is std_att
to get student attendance and the columns are nibm_id, nic, name, batch
What i want is to retrive only nibm_id, nic, name, batch
from std_info
table to std_att
The primary key is nibm_id
here is what i was trying to do so far
cmd.CommandText = "insert into std_att (nibm_id, nic, name, batch) SELECT * (nibm_id, nic, name, batch) FROM `std_info` where nibm_id like '" + textBox1.Text + "%'";
Please show me a way to do this. Thank You!