sql update - Preferred method of updating and setting SQL -


i'm learning sql @ moment, , have found different methods of updating , setting table.

for example, wondering "most correct way" of doing this?

    update student     set test1 = 7, test2 = 9     stuid = 999 

or

    update student     set test1 = 7     stuid = 999     update student     set test2 = 9     stuid = 999 

thanks.

firstly google before posting questions.

the answer (as said others) off-course method 1. not reload database twice.

also if beginner try go learn w3schools


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -