Ask a Question related to Macromedia ColdFusion, Design and Development.
-
samb1 #1
<cfquery> syntax problem
Guys can someone tell me whats wrong with the line I have put in bold? Im
trying to run this query but I get an error telling me the syntax is wrong near
the second insert. Here is my code: <cfquery name='insJobRecord'
datasource='project'> insert into temp (ref, Description, Title, Salary,
Location, Contract, CloseDate, IntDate, CurrentDate) values
(<cfqueryparam value='#Links2#' cfsqltype='CF_SQL_VARCHAR'>,
<cfqueryparam value='#thisJD2#' cfsqltype='CF_SQL_LONGTEXT'>, <cfqueryparam
value='#thisTitle2#' cfsqltype='CF_SQL_VARCHAR'>, <cfqueryparam
value='#thisSalary2#' cfsqltype='CF_SQL_VARCHAR'>, <cfqueryparam
value='#thisLocation2#' cfsqltype='CF_SQL_VARCHAR'>, <cfqueryparam
value='#thisContract2#' cfsqltype='CF_SQL_VARCHAR'>, <cfqueryparam
value='#thisClosDate2#' cfsqltype='CF_SQL_DATE'>, <cfqueryparam
value='#thisIntDate2#' cfsqltype='CF_SQL_VARCHAR'>, <cfqueryparam
value='#now()#'>) insert into job (ref, Description, Title,
Salary, Location, Contract, CloseDate, IntDate, CurrentDate) SELECT
ref,Description,Title,Salary,Location,Contract,Clo seDate,IntDate,CurrentDate
FROM MyTempTable WHERE NOT EXISTS ( SELECT Description
FROM Job WHERE
Replace(Replace(Replace(Replace(SUBSTRING(Job.Desc ription, 1, 5000),'
',''), Chr(9), ''), Chr(10), ''), Chr(13), '') =
Replace(Replace(Replace(Replace(SUBSTRING(Temp.Des cription, 1, 5000),'
',''), Chr(9), ''), Chr(10), ''), Chr(13), '') ) DROP TABLE
MyTempTable </cfquery>TextText
samb1 Guest
-
Cfquery Update Syntax Suddenly bad???
The following code has been working for 2yrs or so; And suddenly I get the following error; Error Executing Database Query. Syntax error in... -
CFQUERY problem
I am passing three values from a form to a search application, miles, zip, and day. I want to test for database entries in which the day's field is... -
unusual cfquery problem
This is an unusual problem. I am attempting to populate a grid from a query ("rec_count2") which has a "where" variable based the tab selected... -
double single quote problem in cfquery
Hi, i've this problem with ColdFusion MX 6.1 Updater and MX 7 If i try to insert a text containing a single quote (for example TEST') all works... -
Javascript and CFquery problem
Hi guys, im hoping you can help. Im currently working on a page that contains a single drop down list that is dynamically populated from the... -
Kronin555 #2
Re: <cfquery> syntax problem
You have to break these out into separate cfquery calls. It looks like you're
doing 2 inserts and a table drop in one <cfquery> tag. Also, you don't put
semicolons at the end of your query contained in a <cfquery>
Kronin555 Guest



Reply With Quote

