Hi all,
Say, I have a database table with columns X and Y. Column X contains some strings, and I want to parse these strings and place the results in column Y.
So I created the udf parseFunction(StringInput), but how do I run the update query in ColdFusion?
When I tried the following:
CF gave me an error because it expects X to be a CF variable rather than a table column. What is the right syntax to run the above?
I know I can do this by doing 2 queries (a select and update), but it took a long time to run.
Any thought? Many thanks in advance.
Min
Say, I have a database table with columns X and Y. Column X contains some strings, and I want to parse these strings and place the results in column Y.
So I created the udf parseFunction(StringInput), but how do I run the update query in ColdFusion?
When I tried the following:
Code:
<cfquery name="updateY" datasource="myDSN">
update myTable
set Y = '#parseFunction(X)#'
</cfquery>
I know I can do this by doing 2 queries (a select and update), but it took a long time to run.
Any thought? Many thanks in advance.
Min