Solved

Add additional text to a field

Posted on 2007-11-28
2
137 Views
Last Modified: 2013-12-24
I have a query insert that I am using to copy a record. Is there a way in ColdFusion that I can add additional text to a field. For example I have a description field and I would like to add "Copy of" at the head of this field.
0
Comment
Question by:usky1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 52

Accepted Solution

by:
_agx_ earned 300 total points
ID: 20367907
You could modify your query to append the value.  The exact syntax may be database dependent

<cfquery ...>
    INSERT INTO YourTable ( ColumnA, DescriptionColumn)
   SELECT   ColumnA,  'Copy of'+ DescriptionColumn
   FROM      YourTable
   WHERE    ID =   #IDOfOriginalRecord#
</cfquery>

0
 

Author Comment

by:usky1
ID: 20368110
Works great. Thanks.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Stream live video from Raspberry Pi camera 22 326
SSL Certificate for IIS7 Site 2 116
Problem to copy file 14 89
how should I go about configuring this in IIS 4 15
Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question