Ask a Question related to Coldfusion Database Access, Design and Development.
-
SilentBob'secretfusion #1
update query not working any ideas?
Hi, I am attempting to do a simple update query using the cfquery tag. The
code is:
<cfquery datasource="test" name="testers">
update tablename
set col1=col1 + "some new stuff"
where colid=4
</cfquery>
I am not getting an error, however I am also not getting an update. Any
clues. I am using sql 2000.
SilentBob'secretfusion Guest
-
PHP Update query not working
Hello, I'm using a standard update query and getting an error message. Here is the code: if ((isset($HTTP_POST_VARS)) && ($HTTP_POST_VARS ==... -
UPDATE using a query?
I thought something would be easy, but I'm lost. Quickly, I'm making a form to sign up employees for a training course. The selection is 1 of 4... -
Update not working :(
Hi, I cant seem to find the problem, I hav an update for which displays items to choose from and then a form at the bottom to enter the model id... -
Working through an update query Coldfusion/Access
I'm working on an update query for a class registration system in ColdFusion 6.1 running against an Access 2000 datasource. In short what I need to... -
Update query help
I'd like to update some of the fields in a table 'master', where some of the data in a row already exists. For example, I'd like to add to a record... -
paross1 #2
Re: update query not working any ideas?
Are you attempting string concatenation or adding numbers?
Phil
paross1 Guest
-
JMGibson3 #3
Re: update query not working any ideas?
It SHOULD be crashing, SQLServer likes single not double quotes.
That said, perhaps you're not executing that portion of the code, or that new page.
JMGibson3 Guest
-
SilentBob'secretfusion #4
Re: update query not working any ideas?
whoops. sorry. it should be single quotes, I mistyped in forum.
Correct
<cfquery datasource="test" name="testers">
update tablename
set col1=col1 + 'some new stuff'
where colid=4
</cfquery>
SilentBob'secretfusion Guest
-
SilentBob'secretfusion #5
Re: update query not working any ideas?
Just adding a string value to a string value.
SilentBob'secretfusion Guest
-
paross1 #6
Re: update query not working any ideas?
Perhaps there aren't any rows where colid=4. Otherwise, I don't see why it wouldn't work.
paross1 Guest
-
MikerRoo #7
Re: update query not working any ideas?
Either you have left something off in your problem code, or there are no
matching rows, or you've overflowed the column.
It's better to always <b>attach</b> the <b>exact</b> code. Doubtless the key
problem was lost in "translation".
In the meantime, you can change your query to this:<i>
<cfquery datasource="test" name="testers">
update tablename
set col1=col1 + 'some new stuff'
where colid=4
<b>select @@RowCount as NumUpdated</b>
</cfquery></i>
... and dump the result.
MikerRoo Guest



Reply With Quote

