Update query in MySQL/VB.NET -


edit (i'm sorry have misinformed guys, true problem) im using 2 textboxes btw.

is there way update record in mysql without using id? mean like,

update table set name = name1, sex = male1 name=name1 

i'm practicing 1 on vb.net, newbie in this, please can me? thanks!

yes can try

sql = "update table set name = name1, sex = male1 name=@name1"  try   com     .connection = con     .commandtext = sql     .parameters.addwithvalue("@name1", your_var_name)  end  com.executenonquery() 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -