Bluehost.com Web Hosting $6.95

Storing large amounts of data in one field

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 ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-10-2006
teser3@hotmail.com
 
Posts: n/a
Default Storing large amounts of data in one field

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.

Reply With Quote
  #2 (permalink)  
Old 03-10-2006
Bill Karwin
 
Posts: n/a
Default Re: Storing large amounts of data in one field

<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.


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 01:08 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0