List:General Discussion« Previous MessageNext Message »
From:Gerald Clark Date:April 9 2001 8:22pm
Subject:Re: How update 1 of two identical rows.
View as plain text  
Your table has no primary key.
You have a badly malformed database.
How can you tell one transaction from another?
You have debit and credit amounts with no timestamp or account
identifier.

Add an autoincrement id field as a primary key. Then you can update
based on that key.

Richard Reina wrote:
> 
> Date            DB_amount       CR_amount
> 2001-04-09      NULL            300.00
> 2001-04-09      NULL            750.00
> 2001-04-09      NULL            300.00
> 
> Anyone know how can I do a query that will update the third record
> without updating the first?
> 
> ---------------------------------------------------------------------
> 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 <mysql-thread71026@stripped>
> To unsubscribe, e-mail
> <mysql-unsubscribe-gerald_clark=suppliersystems.com@stripped>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Thread
How update 1 of two identical rows.Richard Reina9 Apr
  • RE: How update 1 of two identical rows.Ben Dimmock9 Apr
  • Re: How update 1 of two identical rows.Gerald Clark9 Apr
  • Re: How update 1 of two identical rows.Richard Reina9 Apr
    • Re: How update 1 of two identical rows.Bob Hall11 Apr