les05 upd rows20 tell me





Using the Update Statement















The interactions in this eCourse require Javascript to be enabled.



 

Using the Update Statement


previous|next







The syntax of an UPDATE statement is shown in the graphic:
table_name in the UPDATE statement specifies the name of the table whose rows you want to update.
 



Syntax


UPDATE table_name
SET col1 = val1
[,... coln = valn ]
[WHERE condition ];




The SET clause identifies the names of the columns that receive new values. Each value in the SET clause specifies the corresponding value for the column. This can be a simple value, an expression, or a subquery.
Identifying Rows to Modify
You typically use the table's PRIMARY KEY column to identify a single row. Using a nonunique column causes several rows to be updated. For example, identifying rows in the EMPLOYEES table by the DEPARTMENT ID value causes all the employees in that department to be updated.
 
 


 








Wyszukiwarka

Podobne podstrony:
les05 upd rows10 tell me
les05 upd rows20 show me
les05?l rows20 tell me
les05 ins tab20 tell me
les05 sav chg20 tell me
les05 ins tab30 tell me
les05 upd rows10 show me
les05 sav chg10 tell me
les05 upd rows30 show me
les05 ins tab10 tell me
les05?l rows20 show me
les05?l rows10 tell me
les10 man mem20 tell me
Geri Halliwell Don t?ll me?by
les10 man tblspc10 tell me
Bee Gees Tell Me Why
les05 ins tab20 show me
Blink2 Don t Tell Me That It s Over

więcej podobnych podstron