At 01:53 PM 5/2/2001 -0400, you wrote:
>Tell me peeples..maybe I'm going nuts..but what does this do?:
>
><CFQUERY name="WipeRecord" dataSource="CGANEWS">
>DELETE FROM tblNews
>WHERE tblNews.ID = #ID#
></CFQUERY>
>
>And what does this mean?
>
>Queries
>
>WipeRecord (Records=0, Time=10ms)
>SQL =
>DELETE FROM tblNews
>WHERE tblNews.ID = 485
>
>----------------------------------------------------------------------------
>----
>Execution Time
>
>10 milliseconds
>
>
>Doesn't that mean that it deleted ONE record where the ID was 485???
>
>
>So..umm..then..
>WHY DID IT DELETE THE ENTIRE TABLE OF NEWS RECORDS!!??
>!_!
Because before you ran the delete statement you updated the table to change
the ID to 485 and you forgot to put a where clause and there's no unique
constraint on that field?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists