Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Add additional text to a field

Posted on 2007-11-28
2
Medium Priority
?
139 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 1200 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
What You Need to Know when Searching for a Webhost Provider
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses

730 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