•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ColdFusion section within the Web Development category of DaniWeb, a massive community of 373,538 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,805 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ColdFusion advertiser:
Views: 6920 | Replies: 1
![]() |
•
•
Join Date: Oct 2005
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 1
Hi Folks!
Wonder if you can help??
I need to know a way of updating a column in Oracle (datatype: long) but keep the existing data so like an append. Am using Coldfusion to write to Oracle and I know that you can only write 4000 chars at a time, but not sure how you add to what's already there without having to break the 4000 char limit...
Hope this makes sense?!?
:o
Jam
Wonder if you can help??
I need to know a way of updating a column in Oracle (datatype: long) but keep the existing data so like an append. Am using Coldfusion to write to Oracle and I know that you can only write 4000 chars at a time, but not sure how you add to what's already there without having to break the 4000 char limit...
Hope this makes sense?!?
:o
Jam
•
•
Join Date: Oct 2005
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 1
OK - I figured it out. You cannot perform a where/like query on an ORACLE long datatype as it expects an integer. I changed the datatype to a CLOB and then retrieved the field into a temp var. I then added the user input to the temp var and finally updated the record by use of cfqueryparam:
UPDATE theTable SET theColumn = <cfqueryparam value="#tempVar#" cfsqltype="CF_SQL_LONGVARCHAR"> WHERE theTableID = theTableIDValue
..equally I can now perform a search on the CLOB datatype:
SELECT theColumn FROM theTable WHERE theColumn LIKE <cfqueryparam value="%#tempVar#%" cfsqltype="CF_SQL_LONGVARCHAR">
I award myself 100 bonus points...
Jam
UPDATE theTable SET theColumn = <cfqueryparam value="#tempVar#" cfsqltype="CF_SQL_LONGVARCHAR"> WHERE theTableID = theTableIDValue
..equally I can now perform a search on the CLOB datatype:
SELECT theColumn FROM theTable WHERE theColumn LIKE <cfqueryparam value="%#tempVar#%" cfsqltype="CF_SQL_LONGVARCHAR">
I award myself 100 bonus points...
Jam
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb ColdFusion Marketplace
Similar Threads
- ADO replace value function (Visual Basic 4 / 5 / 6)
- Trying to update entire column in database (PHP)
- shell script prob (Shell Scripting)
- shell script prob (Shell Scripting)
- The Datagrid: How does one fill text boxes in edit mode with their original content? (ASP.NET)
- STORED PROCEDURE in .NET please help... (Oracle)
- padobot.v (Viruses, Spyware and other Nasties)
- Update entire Mysql DataBase with PhP (PHP)
Other Threads in the ColdFusion Forum
- Previous Thread: dynamic td's not tr's
- Next Thread: Developer's Opinion about CF?


Linear Mode