This is a discussion on Storing large amounts of data in one field within the MySQL Database forums, part of the Database Forums category; I have a Cold Fusion front end where I want to populate a MySql database with archive information. The front ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I have a Cold Fusion front end where I want to populate a MySql
database with archive information. The front end puts in status and I then copy the old status to a latest history field. Then if the status gets updated it does the same thing but the history info is deleted. Now I want to add an archive field to be able to keep appending so I can keep all of the history. UPDATE theTable SET archive = "archive" "lastesthistory", lastesthistory = "status", status = "form.status" WHERE projId = projID Please advise because the above sql is not working. Also what is the data type I should use for my archive field to store all my historical information? I want to use the biggest data type available in MySql. Each record will be updated once a week and I have about 150 records. Please advise. |
|
|||
|
<teser3@hotmail.com> wrote in message
news:1141957667.972564.38380@i40g2000cwc.googlegro ups.com... > UPDATE theTable > SET archive = "archive" "lastesthistory", > lastesthistory = "status", > status = "form.status" > WHERE projId = projID > > Please advise because the above sql is not working. String concatentation in MySQL is done with the CONCAT() function by default. See http://dev.mysql.com/doc/refman/5.0/...functions.html You can also set the ANSI SQL mode and make it use the double-pipe symbol || for string concatenation, if you prefer syntax compliant with the ANSI standard. See PIPES_AS_CONCAT in http://dev.mysql.com/doc/refman/5.0/...-sql-mode.html > Also what is the data type I should use for my archive field to store > all my historical information? I want to use the biggest data type > available in MySql. LONGTEXT can store up to 4GB of data in a single field. See http://dev.mysql.com/doc/refman/5.0/...-overview.html Regards, Bill K. |