Ask a Question related to Coldfusion Database Access, Design and Development.
-
roadWorkAhead #1
MySQL Queries with multiple statements
I'm trying to include multiple statement in a MySQL query. MySQL seems to
need to have a linefeed between the statements to work correctly but no matter
what text i put in between the cfquery tags, CF passes the query as one long
string to mysql... causing an error.
Any ideas how to make this work?
<cfquery NAME="sqldata" datasource="local">
DELETE * FROM PROJECTS;
INSERT INTO PROJECTS SELECT * FROM PROJECTS_NEW;
</cfquery>
I know i can do this with two separate cf queries...... but i'm trying to
integrate this kind of query with AJAX.... so i'd like to have both sql
statements executed in one call to the server.
roadWorkAhead Guest
-
I need help with a query using multiple join statements
I have an MS Access DB that I am querying and am having problems with the JOIN statement. I have 3 tables: Committees - which has a list of... -
Oracle and asp multiple sql statements
I have a connection between asp and oracle. I have tried the OLE DB connection from both MS and oracle. I can connect and do 1 insert statement... -
Multiple gsub statements in one line possible?
All- For the string called pkg_bug_base, I'm currently using the following code to make some substitutions: pkg_bug_base.gsub!(/<sp_num>/,... -
MySQL - multipul WHERE statements
I'm having trouble with dreamweaver and multipule WHERE staements. My SQL syntax looks like this... SELECT * FROM phonebook WHERE Name LIKE... -
help with multiple BETWEEN statements
Can someone provide an assist with compound BETWEEN syntax? I want to enforce the following: SELECT A from table1 where rate = 'abc' and ... -
mxstu #2
Re: MySQL Queries with multiple statements
I'm not sure that is the problem. Assuming you're using jdbc, is your
datasource configured to allow multiple sql statements? You may need to enable
that setting.
[url]http://www.petefreitag.com/item/357.cfm[/url]
[url]http://dev.mysql.com/doc/refman/5.0/en/cj-configuration-properties.html[/url]
mxstu Guest



Reply With Quote

