Jump to content
php.lv forumi

Incorrect usage of UPDATE and LIMIT


nemec

Recommended Posts

Viss kā parasti ;) rakstīts manuālī:

Single-table syntax:

 

UPDATE [LOW_PRIORITY] [iGNORE] tbl_name

SET col_name1=expr1 [, col_name2=expr2 ...]

[WHERE where_condition]

[ORDER BY ...]

[LIMIT row_count]

Multiple-table syntax:

 

UPDATE [LOW_PRIORITY] [iGNORE] table_references

SET col_name1=expr1 [, col_name2=expr2 ...]

[WHERE where_condition]

 

For the multiple-table syntax, UPDATE updates rows in each table named in table_references that satisfy the conditions. In this case, ORDER BY and LIMIT cannot be used.

 

Gints Plivna

http://datubazes.wordpress.com

Link to comment
Share on other sites

×
×
  • Create New...