So there is no way to do it in one query then ?

I have done it in two already  but, it's just one of those burning questions
I had to ask *L*

Thanks,

-----Original Message-----
From: Adkins, Randy [mailto:[EMAIL PROTECTED]]
Sent: 10 May 2001 13:19
To: CF-Talk
Subject: RE: Insert query inserting a record into multiple tables


Sure

<cfquery name=First datasource="MyDatabase">
        insert into tableone(fieldone,fieldtwo)
        Values('#form.field1#','#form.field2'#)
</cfquery>


<cfquery name=Second  datasource="MyDatabase">
        insert into tabletwo(fieldone,fieldtwo)
        Values('#form.field1#','#form.field2'#)
</cfquery>


-----Original Message-----
From: Darren Adams [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 7:21 AM
To: CF-Talk
Subject: Insert query inserting a record into multiple tables


Is this possible ?

The same datasource, the same form field different tables.

Cheers

Darren Adams
Web Developer
Marketing Department
Systems Union

Office: 01252 55 6220
Mobile: 07714 817 038
Email: [EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to