I have one table name "Grade" with this structure:
ID  Student_ID First_Name Last_Name Grade
1       1         John      Smith    60
2       2         Garry     Poul     70
3       1         John      Smith    80
And I want to add a new grade for Student_ID = 1 in the table Grade, I am using PHP with MySQL DB.
I used this but gives me error!
$sql = "INSERT INTO Grade (Grade) VALUES ('85') WHERE Student_ID=1 ";
During search I found that I can't use WHERE with INSERT in MySQL, how can solve it?
Thanks for all
 
     
    