Ask a Question related to Coldfusion Database Access, Design and Development.
-
kabbi~thkek #1
update multiple rows from one table
Hi,
I have a Dynamically created formfield. Tgis field shows the attached devices
off a selected device (for instance you have a pc and in the formfields it
shows two attached monitors). The monitors however are in the same database
table. (with an other device_id ofcourse). The page with the pc info is shown
by using the device_id in the URL.
What I want to do is update some fields in this table for the pc but also for
the attached devices....
When I do it like this:
UPDATE dev SET .... etc.
WHERE device_id IN ('#FORM.koppel_2#')
It selects both device id's like this: WHERE dev_volgnr IN ('602,603')
This doesn't work! However in this example the table should be updated for
the devices with device_id 602 and 603.
Is this possible? How would I do that?
Thanks in advance.
Gr, Kabbi
kabbi~thkek Guest
-
Update multiple rows on form submission
Dont know why my brain is farting on this but I need to update a table's rows after a form submission. Basically the table has the following... -
how can I update table with multiple rows
Hi I have to output some data from cfquery into a table with text boxes. These text boxes are updatable . If multple rows are updated how can I... -
How do you update corresponding rows on the same table after a row on the table has been updated?
This is my goal: When specific columns in a row, in a table, are updated, corresponding columns in other rows in the same table need to be updated... -
UPDATE MULTIPLE ROWS IN ONE TABLE OBTAINING SUMS FROM ANOTHER TABLE
UPDATE MULTIPLE ROWS IN ONE TABLE OBTAINING SUMS FROM ANOTHER TABLE I need to update a table with distinct sums from another table. I will... -
Update multiple rows
Been working with Access and SQL Server for a long time. New to Oracle. I have two tables TableA & TableB. TableA has EmployeeID (PK),Salary,... -
philh #2
Re: update multiple rows from one table
Hi kabbi~thkek,
WHERE dev_volgnr IN ('602,603') won't work. If your keys are integers, you
need to get rid of the single quotes. If your keys are characters, you need to
enclose each value in single quotes, not the whole string.
HTH,
philh Guest
-
kabbi~thkek #3
Re: update multiple rows from one table
Thank you! I figured it out...
kabbi~thkek Guest



Reply With Quote

