jim wrote:
Each night, a scheduled task copies certain information from an MS
Access db to a MySQL db that serves as a data warehouse. I would like
to begin replicating multi-value fields from Access to MySQL, but when
I try I run into the "unable to insert multi-value fields..." error.
Does anyone know of a way around this? I would be satisfied with
being able to treat all values in the multi-value list as a single
text string with some sort of delimiter.
Thanks in advance for any insight.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Multi-value cells violate relational DB designs.
But......
If you want to transfer comma-delimited values as ONE value you will
have to delimit the string with either a single quote (') or a double
quote ("), depends on the target DB. Usually the single quote works for
all DBs. So, the SQL string would look like this:
UPDATE MySQL_table_name
SET MySQL_column_name = 'junk, stuff, other stuff, trash, crapola'
WHERE <criteria>
If you have the MySQL docs it probably has info on string delimiters.
--
MGFoster:::mgf00 <atearthlink <decimal-pointnet
Oakland, CA (USA)
** Respond only to this newsgroup. I DO NOT respond to emails **
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBSNmrWYechKqOuFEgEQLOHACcDRJ2EZYGvRclq8b6mGeRQI Jz/e8AoI2c
LzDEQO0cVEeRQ57KM1szgOJ+
=atu0
-----END PGP SIGNATURE-----