Ask a Question related to Coldfusion Database Access, Design and Development.
-
alternative #1
update to match 2 different column of data
let for an example:
<cfset word1="hello">
<cfset word2="world!">
and inside database on of the column id=20
record like below:
ID-------NAME
20, helloworld!
on this situation, i wanna update the record on something,
but how i gonna to match it together?
my code is like below,
<cfquery datasource="#db#">
update table set xxxxxx
where [word1+word2] = NAME
</cfquery>
anyone can help me on this?
alternative Guest
-
Getting column data without column names
Hello all, I'm trying to write a coldfusion program to display account data such as name, address, phone #, etc. I retrieve this data from an ... -
update datagrid with dynamic bound column
I have a simple question which is how to get the entered values on update so I can save them to a database? Specifically I call findControl to get... -
Allowing update of column only from trigger
I have a table like this: create table objects ( id serial primary key, name varchar not null, parent integer references objects(id) default... -
Template Column data depending on form data
Langauage C# I have a webform containing a dropdown control and a datagrid. A different query is fired depending on the value of the dropdown... -
Update portion of a string column
Hi, I have a column that has a string field, and I only wanna update the 3rd character in the string. e.g. change 'StRing' to 'String'. Is this... -
Dan Bracuk #2
Re: update to match 2 different column of data
where name = '#word1##word2#'
Originally posted by: alternative
let for an example:
<cfset word1="hello">
<cfset word2="world!">
and inside database on of the column id=20
record like below:
ID-------NAME
20, helloworld!
on this situation, i wanna update the record on something,
but how i gonna to match it together?
my code is like below,
<cfquery datasource="#db#">
update table set xxxxxx
where [word1+word2] = NAME
</cfquery>
anyone can help me on this?
Dan Bracuk Guest
-
alternative #3
Re: update to match 2 different column of data
how about 'hello - world!"?
how i gonna plus both word together in sql?
alternative Guest
-
alternative #4
Re: update to match 2 different column of data
how about we make it reversely.
1 word <cfset word="Hello - world !">
and we have firstname, lastname in database
alternative Guest
-
Dan Bracuk #5
Re: update to match 2 different column of data
where name = '#word1# - #word2#'
Originally posted by: alternative
how about 'hello - world!"?
how i gonna plus both word together in sql?
Dan Bracuk Guest



Reply With Quote

