SqlCommand INSERT INTO query does not execute

前端 未结 3 651
旧时难觅i
旧时难觅i 2020-12-07 05:55

Hello guys I have got this code:

SqlCommand scom = new SqlCommand(
                                \"INSERT INTO klient(name,surname) 
                               


        
3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-07 06:40

    The above stated problem is due to the missing executenonquery() statement, add this statement in your code

    spojeni.Open();
    prikaz.ExecuteNonQuery();
    

提交回复
热议问题