0

Updating Multiple Columns

Why do we have to specify Name and ID ? isn't it enough to specify just the ID since we can be sure there won't be any duplicate entries using Where ID...? here's the example: UPDATE Employees SET Salary=5000, FirstName='Robert' WHERE ID=1;

2nd Apr 2018, 3:08 PM
George Sgubeanu
George Sgubeanu - avatar
2 ответов
+ 1
In the example query salary and first-name values are being updated where ID =1 condition for filtering will be after where keyword
2nd Apr 2018, 4:28 PM
kaliki chandu
kaliki chandu - avatar
0
Ah thanks mate! I was confused, but seeing it with fresh eyes now makes sense :)
3rd Apr 2018, 7:12 AM
George Sgubeanu
George Sgubeanu - avatar