Ask a Question related to Coldfusion Database Access, Design and Development.
-
createmedia #1
insert form data into joined tables...
Hello All,
I am trying to insert form data in to two joined tables. If Table 1 has a
"ProductID" unique key and Table 2 has a numeric "ProductID" field..... (the
joined field) ....how can I insert a form submission into the 2 tables..?
Thanks so much for any help you can give...... I'm starting to drink heavily
on this one :-)
So far, this is the basic structure.... but obviously does not work for the
joined tables ...
THANKS!!!
<CFQUERY name="Testing" datasource=" ">
INSERT INTO Table1(data,data1)
VALUES ('#form.data#','#form.data1#')
</CFQUERY>
<CFQUERY name="Testing2" datasource=" ">
INSERT INTO Table2(data,data1)
VALUES ('#form.data2#','#form.data3#')
</CFQUERY>
createmedia Guest
-
insert data in 2 differents tables in same cfquery
Hi! I have problem with a special odbc driver that only permit me to insert data if insert data in table1 and after in table2.... Something like:... -
how to update joined tables?
I have this query: SELECT PlanDB.RecNum, PlanDB.ClientId, PlanDB.AdminId, PlanDB.PlanCodeId, PlanDB.PlanNum, PlanDB.PlanName, PlanDB.PlanYearEnd,... -
Can one <form> submit data to multiple tables?
Am I able to use a single form to write data to multiple tables in my database using php/mySQL? -
insert data for two tables at same time?
1 to many relationship tables first table - project number (auto), project name, Proj manager, proj date, proj description second table - project... -
Login - multi table insert for registrant; subsquent login insert page requests into joined 'Selection' Table
Question regards insert and updates in sql server for a simple login script that requires registration the first time and only "email address" upon... -
Dan Bracuk #2
Re: insert form data into joined tables...
You need to get the new productid from the first table. There are lots of ways to do this. What db are you using?
Dan Bracuk Guest
-
createmedia #3
Re: insert form data into joined tables...
I'm using MS Access on the server...
thanks...
createmedia Guest



Reply With Quote

