CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Insert record into Multiple table

Print topic Send  topic

Author Message
Phillips
Posted: 03/12/2002, 7:27 AM

Hi,

I'm trying to insert one from into three different table. From the FAQ on
CC they said this can be done w/ a SQL script.

Would someone please walk me through this step of where the SQL script is
insert?? or a betterway to insert into multiple tables.

Thanks,


Glenn Holden
Posted: 03/12/2002, 10:06 AM

I would do this by adding three SQL statements to the Before Insert or After
Insert events for the form, depending on where and when the information will
be in the original table. How the SQL is constructed or sent depends on
your app server and database software.
For PHP with MySQL each statement would be something like:

$db->query("insert table_X (col_1, col_2, col_3) select col_A, col_B, col_C
from tbl_Y where col_A = 'something'");




"Phillips" <fdiskboy@msn.com> wrote in message
news:a6l6on$ig9$1@news.codecharge.com...
> Hi,
>
> I'm trying to insert one from into three different table. From the FAQ on
> CC they said this can be done w/ a SQL script.
>
> Would someone please walk me through this step of where the SQL script is
> insert?? or a betterway to insert into multiple tables.
>
> Thanks,
>
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.