RE: [PHP] verifying sql INSERTs
| From: | Chris W. Parker | Date: | Tue, 26 Aug 2003 19:08:13 +0000 |
| Subject: | RE: [PHP] verifying sql INSERTs | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-160844@lists.php.net to get a copy of this message | ||
Curt Zirzow <mailto:php-general@zirzow.dyndns.org>
on Tuesday, August 26, 2003 11:26 AM said:
> Like what happens if for some reason the constraint gets dropped?
> having your progam rely on the constraint will cause all data
> integrity to go to hell.
In that case I hope you're also incrementing your own IDs and not
leaving that up to the db either. You might also do yourself a favor and
write down each transaction instead of hoping the computer will do it's
job correctly. ;)
But seriously, how likely is it for a db/table to just drop it's
constraint? And in what situations would/could that happen?
Chris.