Select from following answers:- UPDATE Orders SET [Status] = @status WHERE OrderID = @orderID
- UPDATE Orders SET [Status] = @status, OrderID = @orderID
- SELECT [Status] = @status FROM Orders WHERE OrderID = @orderID
- All Above
The UPDATE statement can change data values in single rows, groups of rows, or all the rows in a table or view. The SET clause contains a comma-separated list of the columns to be updated and the new value for each column in the form column_name = expression. The FROM clause identifies the tables or views that supply the values for the expressions in the SET clause. The WHERE clause specifies the search condition that defines the rows from the source tables and views that qualify to provide values to the expressions in the SET clause
The columns to modify must be given in the SET clause, not the WHERE clause.
A SELECT query does not update a table.
Show Correct Answer
Source: MeasureUp.Com | |
Alert Moderator