Ask a Question related to Coldfusion Database Access, Design and Development.
-
Mattastic #1
SQL server query problem
Hi there,
Could anyone tll me what wrong with the sql below?
It doesn't work.
INSERT INTO courses (applicationid, ccoursename) VALUES (2974,'228'),
(2974,'328'), (2974,'204'), (2974,'339');
Thankyou
Mattastic Guest
-
One Line Query to Server - Beg
I own Studio 8 (MX 2004 I believe), and have not used Flash before, though I am a good C programmer, ok in Javascript. I have written a few mashup... -
Query on Query and CF casting problem
I am using a custom tag in MX7 that was working fine in 5 that renders a table. The input to the custom tag is a query and it's columns along with... -
Access Query >> sql server
Would it be possible for me to simply paste this access query into a SQL Server stored procedure: SELECT asplGroupTbl.groupname,... -
server query
Hi Does anybody know if more than one person accesses a shockwave project near enough simutaneously on a server would the second user have to wait... -
Query in Index Server: @filename search problem
I try to do some search in ASP using the filename on an Index server Catalog. The filename begin with date (2001_06_13.html). I do some search with... -
rmorgan #2
Re: SQL server query problem
The data with the single quotes, is that text or an integer? Check your
datatype for the column it is being inserted into. The quotes could be causing
the problem if you are inserting it into a integer datatype
rmorgan Guest
-
paross1 #3
Re: SQL server query problem
You can only insert one set of falues at a time, and it looks like you are
attempting to insert 4. Loop through the insert statement, of write 4 distinct
insert statements. Are these values "hard coded" or from some other query,
etc.? If they are from a query, you can use a select statmement in place of the
VALUES statement.
INSERT INTO courses (applicationid, ccoursename) VALUES (2974,'228');
INSERT INTO courses (applicationid, ccoursename) VALUES (2974,'328');
INSERT INTO courses (applicationid, ccoursename) VALUES (2974,'204');
INSERT INTO courses (applicationid, ccoursename) VALUES (2974,'339');
Phil
paross1 Guest
-
Mattastic #4
Re: SQL server query problem
Thanks for this, you can insert multiple values in mysql though can't you?
Mattastic Guest
-
paross1 #5
Re: SQL server query problem
It looks like MySQL supports multiple value lists on inserts, at least
according to their reference manual: The INSERT ... VALUES form with multiple
value lists is supported in MySQL 3.22.5 or later.
What database are you using?
Phil
paross1 Guest



Reply With Quote

