dbTalk Databases Forums  

PL/SQL code for inserting data based on a checkbox value

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss PL/SQL code for inserting data based on a checkbox value in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shahram.shirazi@gmail.com
 
Posts: n/a

Default PL/SQL code for inserting data based on a checkbox value - 04-12-2006 , 11:43 AM






Hi all,

I am trying to insert data from two tables into specified table
depending on the state of a checkbox.

I am using Oracle HTMLDB to do it. Below is the process for when the
'submit button' is pressed. I know it is definately wrong as it is
missing some parts. Can anyone help?

For i in 1..HTMLDB_APPLICATION.G_F01.count
LOOP
INSERT INTO "ATTENDANCES" ("STUDENT_ID",
"REGISTER_ID")
WHERE "STUDENT"."STUDENT_ID" =
HTMLDB_APPLICATION.G.F01,
AND "REGISTER"."REGISTER_ID" =
:P201_REGISTER
END LOOP

Thank you for you help

Shahram


Reply With Quote
  #2  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: PL/SQL code for inserting data based on a checkbox value - 04-12-2006 , 01:42 PM






shahram.shirazi (AT) gmail (DOT) com wrote:
Quote:
Hi all,

I am trying to insert data from two tables into specified table
depending on the state of a checkbox.

I am using Oracle HTMLDB to do it. Below is the process for when the
'submit button' is pressed. I know it is definately wrong as it is
missing some parts. Can anyone help?

For i in 1..HTMLDB_APPLICATION.G_F01.count
LOOP
INSERT INTO "ATTENDANCES" ("STUDENT_ID",
"REGISTER_ID")
WHERE "STUDENT"."STUDENT_ID" =
HTMLDB_APPLICATION.G.F01,
AND "REGISTER"."REGISTER_ID" =
:P201_REGISTER
END LOOP

Thank you for you help

Shahram

Search the oracle htmldb forum - this is one of the faqs there.

--
Regards,
Frank van Bortel

Top-posting is one way to shut me up...


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.