I have an interesting problem for Interbase. I have a record set which amongst other things has a data entry field and a timestamp for each record. I would like to be able to copy the timestamp from records so that at the end of the day the final field will read along the lines of:
TIMESTAMP <Carriage return> <carriage return> Original data in field
Thus the final appearance when the field is displayed is:
time of entry
data that was entered
Sadly, this must be accomplished at the database level as I do not have access to the front end software.
The only solution I have been able to come up with is do to a select, use custom software to perform the merge and then generate the appropriate SQL, line by line, to update the record. As there are several hundred records per day this is rather slow, so a SQL based solution would be ideal.
In the past I have succeeded in adding fixed data to the end of a string using ||
for concatenation with an UPDATE
instruction (data||extra information which is the same for all records") but have trouble making this work in the format:
result of search||original data
Any help would be much appreciated.