Quantcast
Channel: Tech Notes » mysql
Viewing all articles
Browse latest Browse all 6

MySQL Update Table Limit Rows

$
0
0

Updating a block of rows in MySQL can be accompished by using the “limit” function:

update TABLE_NAME set COLUMN_NAME=VALUE limit MAX;

E.g.

update products set state=false limit 10;

Viewing all articles
Browse latest Browse all 6

Trending Articles