Never a Doh! moment.

Steve Meyers steve-plug at spwiz.com
Wed Nov 30 17:42:27 MST 2005


Chris Carey wrote:
> My last DOH moment was when writing some SQL statements and I forgot
> the WHERE clause ...
> 
> DELETE FROM billing;
> 
> instead of
> 
> DELETE FROM billing WHERE id=123;

Use the --i-am-a-dummy flag:
http://dev.mysql.com/doc/refman/5.0/en/safe-updates.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5305 bytes
Desc: S/MIME Cryptographic Signature
Url : http://plug.org/pipermail/plug/attachments/20051130/ba06f4f5/attachment.bin 


More information about the PLUG mailing list