Latest Tutorial

We need to update the record, and we need to use the UPDATE statement.

Update Statement


UPDATE user

SET name='Mina', age=12

WHERE user_id=36;

DESCRIPTION

Make sure that you have the WHERE Clause when you use the UPDATE statement. Without the WHERE Clause, you will tell MySQL to UPDATE all the records.

0 comments:

Post a Comment

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.

 
Top
Blogger Template