Posted by Ivαn Sαnchez Ortega on 11/13/48 11:47
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Colin McKinnon wrote:
> I want some code where I present an array of data, and the corresponding
> primary key and let the code work out whether to INSERT or UPDATE it,[...]
[...]
> Anybody any suggestions?
Use MySQL and REPLACE statements.
- --
- ----------------------------------
IvΓ‘n SΓ‘nchez Ortega -i-punto-sanchez--arroba-mirame-punto-net
Un ordenador no es un televisor ni un microondas, es una herramienta
compleja.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
iD8DBQFEY8CT3jcQ2mg3Pc8RAl57AJ901ARs69nLk3mptIDYKlfLDCeBogCfft10
HOi1URDxXXfp8rNg1RoHIGI=
=93vZ
-----END PGP SIGNATURE-----
[Back to original message]
|