Solved

Add additional text to a field

Posted on 2007-11-28
2
138 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

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

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

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.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

623 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