That depends.
Just the one 9, or all instances of 9 in 'C'?
This is a basic SQL question, not a MySQL question.
I would suggest finding a book on SQL.
You could try:
update Table_1 set c=20 where a=10 and b=18 and c=9;
This will guarantee that only the first line ( O one just like it ) will
be updated.
soon chee keong wrote:
>
> Table_1
>
> -------------------------
> A B C
> -------------------------
> 10 18 9
> 4 3 1
> --------------------------
>
> how can i change column C's "9" to say "20" without inserting a new record
> and columns A and B remain unchanged?
>
> do i use REPLACE or what?please advice.
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> ---------------------------------------------------------------------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
><[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php