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

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -