Ask a Question related to Coldfusion Database Access, Design and Development.
-
ChinoTrixter #1
Editing Queies
Hi,
Was wondering if there's a way to edit a table after you've created a query.
Say you have something like
<CFQUERY name="Test" DATASOURCE="#....#" username="#....#"
password="#....#">
SELECT aaaa, bbbb, cccc....
FROM ....
WHERE ....
ORDER BY ....
</CFQUERY>
But now say I want to go through every record in "Test" and modify the aaaa's
by performing some kind of function, like (aaaa + 5). And wherever I use this
"Test", I will be using the new modified values. How do i do this? Can I use
a <CFLOOP> and how do I set them, with a <CFSET>? Thank You.
Chino
ChinoTrixter Guest
-
Help With Editing
I've been using Contribute 1.0 to edit our website forever. All of a sudden there are 3 or 4 pages out of the 500 page population of our website... -
editing text using advance editing feature
I created 11 PDFs in InDesign for my client. She wants to be able to change the headlines on the PDFs using Acrobat editing features. I never... -
Editing .SWF
I lost the .fla file and all I have is a .swf file of it, and I need to take some frames out of the animation, but I can't figure out how. If you... -
xml editing from within swf
Basically, I am creating a website with about 10 pages. Each being a different section. Each of these pages will have a flash file with a block of... -
Help with editing?
Hi, Thanks for any help. I need to make some changes to a section of my site that was made in fireworks MX. This section includes a pop up menu... -
aapacleb #2
Re: Editing Queies
<CFQUERY ...>
UPDATE table_name
SET aaaa=aaaa+5
</CFQUERY>
aapacleb Guest
-
The ScareCrow #3
Re: Editing Queies
I don't think Chino wants to update the table, just the display
<cfoutput query="Test">
<cfset newValue = Test.aaaaa + 5>
#newValue#
</cfoutput>
Ken
The ScareCrow Guest
-
ChinoTrixter #4
Re: Editing Queies
Yes I do want it for the display, but I was wondering if I can change all the
aaaa values from "Test" at one go and have it stored in "Test" itself so that I
dont have to modify the aaaa's wherever I have the <cfoutputs>.
So I just want
<cfoutput query="Test">
#Test.aaaa#
</cfoutput>
but all the aaaa's have already been modified. Thank you.
ChinoTrixter Guest
-
mxstu #5
Re: Editing Queies
Did you try something like this...
<cfloop query="Test">
<cfset Test["aaaa"][currentRow] = aaaa + 5>
</cfloop>
<cfdump var="#Test#">
mxstu Guest



Reply With Quote

