Impossible to insert rows in the table
My insert statement below is not correct, when I try to run, his encoutering error "table or view does not exist.Basically what I'm doing here collects the table name in THE variable that stores the name of the table in this variable. This variable, I use as a table. I know that's not the right way, please let me how can I insert rows in the complete table with the following code.
DROP TABLE TEMP;
CREATE TABLE TEMP AS SELECT * FROM model WHERE 1 = 2;
DECLARE
I HAVE INTEGER DEFAULT 1;
S VARCHAR2 (50);
Start
for C (select TABLE_NAME IN s from USER_TABLES where TABLE_NAME like '% of the CABLE' and TABLE_NAME NOT like '% OLD' and the order of 0 > Num_ROWS by TABLE_NAME) loop
INSERT INTO TEMP SELECT * FROM c.TABLE_NAME;
dbms_output.put_line (c.table_name);
end loop;
end;
The insert statement above is not correct. How can I write good way.
Thank you.
Best regards
Arshad
user13360241 wrote:
My insert statement below is not correct, when I try to run, his encoutering error "table or view does not exist.Basically what I'm doing here collects the table name in THE variable that stores the name of the table in this variable. This variable, I use as a table. I know that's not the right way, please let me how can I insert rows in the complete table with the following code.
DROP TABLE TEMP;
CREATE TABLE TEMP AS SELECT * FROM model WHERE 1 = 2;
DECLARE
I HAVE INTEGER DEFAULT 1;
S VARCHAR2 (50);
Start
for C (select TABLE_NAME IN s from USER_TABLES where TABLE_NAME like '% of the CABLE' and TABLE_NAME NOT like '% OLD' and order > 0 Num_ROWS of TABLE_NAME) loop
INSERT INTO TEMP SELECT * FROM c.TABLE_NAME;dbms_output.put_line (c.table_name);
end loop;
end;The insert statement above is not correct. How can I write good way.
Thank you.
Best regards
Arshad
STMT: = "INSERT INTO TEMP SELECT * FROM ';"
STMT: = STMT. S;
IMMEDIATELY EXECUTE STMT;
Tags: Database
Similar Questions
-
Need help to insert rows in the table to a custom table area
Hi all
I have a requirement as below.
I have a page of the i invoke a popup search page and displaying the table data in the area of the table, this table I select lines and pressing the button and given in the basic page in the region of the table being filled, of data, I need to insert these lines into a custom table. Please help me how to achieve this. Basically, I need to insert rows from one table to a custom table region.
Thnaks
Hello
Review the link, below, may be it will help you:
https://forums.Oracle.com/thread/953885
https://forums.Oracle.com/thread/2151775
Please share your solution here, it will help others.
Concerning
Mahesh
-
How to insert rows in the table dynamically?
I have a table with 18 ranks. Each of the first 17 rows have text read-only (mandatory activities) in a text field in the first column; the last line is a blank line with an Add button so that the user can add a new activity to the bottom of the table.
I was invited to allow users to insert a new activity at any location in the table (by example, to insert a new 7 row after row 6), instead of just at the end of the table. (Of course this requires also remove the text in the text box of the activity and to change to the entry by the user, as well as a few other household activities, which should not be a problem if I can get just the line darn insert!)
I searched the forums and looked at some of the examples ensure dynamics. From what I've seen, this should be fairly simple... but it does not work.
Or rather, it works very well on the first line, several times even. I have a message box displays the indices of current and new line properly for each line. But in any other line as the first, insertInstance() gives me an error "index value is out of range" even when the message box displays the correct clues.
Given the structure and the following code in each button an ActivityAdd line, can someone tell me what I'm doing wrong? Thank you!!!
-------------------------------------------
---------------------------------------------
T_Activities.R_Activity [0]. T_AddRemove.R_Add.B_ActivityAdd::click - (JavaScript, client)
var vNewRowIndex = this.parent.parent.parent.index + 1;
xfa.host.messageBox ("the index of this line:" + this.parent.parent.parent.index + ".") Index of the new row: "+ vNewRowIndex +". ");"
T_Activities.R_Activity.instanceManager.insertInstance (vNewRowIndex, 1);
------------------------------------------------
FWIW, I've seen the warnings about the instance manager and features underscores in names of object... for better or worse, * all * of my names object * all * of my forms use underscores like this, and to the best of my knowledge I have never had a problem. So which proves to be the problem here, I'll gladly change the names in the table.
Did you use java or formcalc when you got the error? I've recreated your table and the code works in formcalc.
Concerning the insertIndex working in the first line, I think that maybe it's because you always refer to the first line (R_Activity).
-
Add more than 2 lines for a select statement without inserting rows in the base table
Hi all
I have a below a simple select statement that is querying a table.
Select * from STUDY_SCHED_INTERVAL_TEMP
where STUDY_KEY = 1063;
but here's the situation. As you can see its return 7 ranks. But I must add
2 rows more... with everything else, default or what exist... except the adding more than 2 lines.
I can't insert in the base table. I want my results to end incrementing by 2 days in
measurement_date_Taken on 01-APR-09... so big measurement_date_taken expected to
end at study_end_Date...
IS IT STILL POSSIBLE WITHOUT INSERT ROWS IN THE TABLE AND PLAYIHY ALL AROUND WITH
THE SELECT STATEMENT?
Sorry if this is confusing... I'm on 10.2.0.3
Published by: S2K on August 13, 2009 14:19Well, I don't know if this request is as beautiful as my lawn, but seems to work even when ;)
I used the "simplified" version, but the principle should work for your table, S2K.
As Frank has already pointed out (and I fell on it while clunging): simply select your already existing lines and union them with the 'missing documents', you calculate the number of days that you are "missing" based on the study_end_date:MHO%xe> alter session set nls_date_language='AMERICAN'; Sessie is gewijzigd. Verstreken: 00:00:00.01 MHO%xe> with t as ( -- generating your data here, simplified by me due to cat and lawn 2 select 1063 study_key 3 , to_date('01-MAR-09', 'dd-mon-rr') phase_start_date 4 , to_date('02-MAR-09', 'dd-mon-rr') measurement_date_taken 5 , to_date('01-APR-09', 'dd-mon-rr') study_end_date 6 from dual union all 7 select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('04-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all 8 select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('09-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all 9 select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('14-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all 10 select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('19-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all 11 select 1063, to_date('22-MAR-09', 'dd-mon-rr') , to_date('23-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all 12 select 1063, to_date('22-MAR-09', 'dd-mon-rr') , to_date('30-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual 13 ) -- actual query: 14 select study_key 15 , phase_start_date 16 , measurement_date_taken 17 , study_end_date 18 from t 19 union all 20 select study_key 21 , phase_start_date 22 , measurement_date_taken + level -- or rownum 23 , study_end_date 24 from ( select study_key 25 , phase_start_date 26 , measurement_date_taken 27 , study_end_date 28 , add_up 29 from ( 30 select study_key 31 , phase_start_date 32 , measurement_date_taken 33 , study_end_date 34 , study_end_date - max(measurement_date_taken) over (partition by study_key 35 order by measurement_date_taken ) add_up 36 , lead(measurement_date_taken) over (partition by study_key 37 order by measurement_date_taken ) last_rec 38 from t 39 ) 40 where last_rec is null 41 ) 42 where rownum <= add_up 43 connect by level <= add_up; STUDY_KEY PHASE_START_DATE MEASUREMENT_DATE_TA STUDY_END_DATE ---------- ------------------- ------------------- ------------------- 1063 01-03-2009 00:00:00 02-03-2009 00:00:00 01-04-2009 00:00:00 1063 03-03-2009 00:00:00 04-03-2009 00:00:00 01-04-2009 00:00:00 1063 03-03-2009 00:00:00 09-03-2009 00:00:00 01-04-2009 00:00:00 1063 03-03-2009 00:00:00 14-03-2009 00:00:00 01-04-2009 00:00:00 1063 03-03-2009 00:00:00 19-03-2009 00:00:00 01-04-2009 00:00:00 1063 22-03-2009 00:00:00 23-03-2009 00:00:00 01-04-2009 00:00:00 1063 22-03-2009 00:00:00 30-03-2009 00:00:00 01-04-2009 00:00:00 1063 22-03-2009 00:00:00 31-03-2009 00:00:00 01-04-2009 00:00:00 1063 22-03-2009 00:00:00 01-04-2009 00:00:00 01-04-2009 00:00:00 9 rijen zijn geselecteerd.
Is there a simpler way (in SQL), I hope that others join, and share their ideas/example/thoughts.
I feel that it is using more resources there.
But I have to cut the daisies before now, they interfere my 'grass-green-ess";) -
Error when inserting rows into a table
Hello
We have recently migrated to 9i and 10g. We have a scheduled task on our database who first removes all rows from a table and then inserts them back by selecting the lines of 5 tables. This table has a composite primary key based on 6 columns in it. In 9i, when I try to insert rows in the table after you remove all of the lines, I am able to insert the data successfully. However, in 10g, when I try to do the same operation, it fails with error ORA:
ORA-00001: unique constraint violated
The same query that works perfectly in 9i fails in 10g
If anyone has some ideas on how to solve the same, kindly let me know.
Thanks in advance.CrazyAnie wrote:
Okay, so now the only option that remains is that I have load the data into a local table and then perform the loading.May not be the only option, but the safest and cleanest I would say.
CrazyAnie wrote:
Also, it would be very kind of you that you might suggest all other possible risk areas where this CHARSET conversion could be a concern.I imagine that the main areas of concern will be you are interfacing directly with other databases through database links and using string functions. Otherwise, as long as the manipulation of data is in the same database 10g should not be a problem.
CrazyAnie wrote:
I made the migration of my source 9i DB, which is on Solaris to my 10g database which is on Linux and a separate server (which resides in a completely different location) uses exp and IMP. So if I try to export my schema after you change the CHARACTER set and then import it into the target DB, should that help me to get rid of this error? What is an option that can be done?I don't think it would be that simple change your database character set, check out this link for discussions about the same:
[http://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:5783936214008]
-
How to display a message after inserting line in the table...
Hello
I want to display a message after inserting rows in the table as *' you have inserted a new line with success *'.
I use the ADF button createinsert to insert the rows in table.after that I am stolen it.
After commit I want to display message for the user.for what I need to do.
Please help me.
Sanchez.
Double-click the validation button, to link Action property dialog will appear and then create a method of bean managed for the validation button.
Then, add the following code to the method:public String saveButton_action() {}
BindingContainer links = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding ("Commit");
Object result = operationBinding.execute ();
Note "!" operator has been removed from the default code.
{if (OperationBinding.GetErrors (). IsEmpty())}
FacesContext ctx = FacesContext.getCurrentInstance ();
FacesMessage saveMsg is new FacesMessage ("saved successfully");.
ctx.addMessage (null, saveMsg);
}
Returns a null value.
}Then, restore the ActionListener value.
I hope this helps.
-
Insert rows in the PL/SQl table
Hello
I have a PL/SQl table that I filled through bulk collect and now I'm trying to loop through the table (actually quite a few nested loops)... Now in one of my curls, I might need to insert a new row by splitting the field in the existing row in the table. Can I insert the line in the pl/sql table in the loop without affecting the "FOR i IN tab.first... Tab.Last' loop?
Also, what would be the index of such a line inserted into the table. Can I access it with tab.last + 1 (doesn't look like it can be done if I insert into various levels of loops).
OR
If I insert the lines insde loops nested, then I can access the new lines as soon as I close all the loops and open a new loop? The new lines will be at the last table.
Any help will be appreciated...The expression v_arr. LAST gives the index of the last entry, so you can refer to this element as
v_arr(v_arr.LAST)
Then the attributes of this element will be
v_arr(v_arr.LAST).attr
for example
DECLARE TYPE table_defs_tt IS TABLE OF user_tables%ROWTYPE INDEX BY PLS_INTEGER; v_mytables table_defs_tt; BEGIN SELECT * BULK COLLECT INTO v_mytables FROM user_tables WHERE ROWNUM <= 100; DBMS_OUTPUT.PUT_LINE(v_mytables(v_mytables.LAST).table_name); END;
-
Insert a row into the table on a button click
Hi all
I have a table called 'temp' with 4 columns such as seq, name, event, id and I have a GP with 3 text such as name, event id fields
now my question is
If I enter values in the 3 text fields on this page and a button, click on (for example create), I wanted the values of dose to get inserted into the table 'temp' and
regarding, "seq" column I HAV created a sequence for it.
so 1. How to insert values into the table by entering the values in the page
2 wat shd b made to column seq... (shd b anyth made apex pages or wil automatically get values for each input line)
pls help me...
Thanks in advance
1, it is up to you change your account to something more user-friendly than '8f4692cc-040e-48ee-b102-590cdd4303fc'.
Then, it would also be a good idea to use proper English when you ask a question here... Not broken English as "now comes to my" and "wat shd b"... More people will be willing to help you if you at least put forward in order to ask a good question...
Which version of the database are you using? APEX version?
Change the code above to this process:
DECLARE
v_seq NUMBER;
BEGIN
Select SEQUENCE_NAME. NEXTVAL INTO v_seq
Double;
INSERT INTO temp (seq, name, event, id)VALUES (v_seq,: P1_name,: P1_event,: P1_id);
END;
This allows it to be used in older versions of Oracle that do not allow direct access to the sequence.nextval in an assignment statement.
Thank you
Tony Miller
Software LuvMuffin
-
Rows in the table LT until merger of all workspaces
Database 11.2.0.4
In our environment, we ran a few important updates in the workspaces and then merged these live workspaces. Up to 25% of the data has been updated in those workspaces. When these update batch workspaces have been created, previous workspaces exist who are not yet ready for the merger.
I noticed that the underlying tables of the LT now have about 25% more lines than the live view. We have now discovered that dbms_wm.refreshWorkspace works really poor. This statement is used to take seconds or minutes to the maximum, but can now take half an hour or more.
We recorded a support with Oracle request and provided details of the plan to see if we can get some resolution/advice explaining.
In the meantime, I have a question for the forum help my understanding of the works of the Manager of the workspace.
In the example below, I have table "wm_test_table", "test_workspace1" and "test_workspace2". In "test_workspace1", I update all rows in the table - the table LT now has 2 rows for each record. I merge 'test_workspace1' live and LT still has 2 rows for each record. The other lines are not removed until "test_workspace2" is merged and removed.
SQL> -- Create a test table SQL> create table wm_test_table ( 2 id integer primary key, 3 name varchar2(100)); Table created. SQL> -- Insert 1,000 rows SQL> insert into wm_test_table ( 2 select rownum, 'before' 3 from dual 4 connect by level <= 1000); 1000 rows created. SQL> commit; Commit complete. SQL> -- Version enable it SQL> execute dbms_wm.enableVersioning('wm_test_table'); PL/SQL procedure successfully completed. SQL> -- Create two workspaces SQL> execute dbms_wm.createWorkspace('test_workspace1'); PL/SQL procedure successfully completed. SQL> execute dbms_wm.createWorkspace('test_workspace2'); PL/SQL procedure successfully completed. SQL> -- Go to test_workspace1 and update all the rows SQL> execute dbms_wm.goToWorkspace('test_workspace1'); PL/SQL procedure successfully completed. SQL> update wm_test_table set name = 'after'; 1000 rows updated. SQL> commit; Commit complete. SQL> -- Check how many rows in wm_test_table_lt - we expect 2,000 as we haven't merged yet SQL> select count(*) from wm_test_table_lt; COUNT(*) ---------- 2000 SQL> -- Merge and remove test_workspace1 SQL> execute dbms_wm.goToWorkspace('LIVE'); PL/SQL procedure successfully completed. SQL> execute dbms_wm.mergeWorkspace('test_workspace1', remove_workspace=>true); PL/SQL procedure successfully completed. SQL> -- Check how many rows in wm_test_table_lt SQL> -- I'd hope there'd only be 1,000 but there is 2,000 SQL> select count(*) from wm_test_table_lt; COUNT(*) ---------- 2000 SQL> -- Let's see if compressWorkspace will get rid of them SQL> execute dbms_wm.compressWorkspace( - > workspace => 'LIVE', - > auto_commit => true, - > remove_latest_deleted_rows => true); PL/SQL procedure successfully completed. SQL> -- They're still there SQL> select count(*) from wm_test_table_lt; COUNT(*) ---------- 2000 SQL> -- Now merge test_workspace2 SQL> execute dbms_wm.mergeWorkspace('test_workspace2', remove_workspace=>true); PL/SQL procedure successfully completed. SQL> -- and the additional 1,000 rows are removed SQL> select count(*) from wm_test_table_lt; COUNT(*) ---------- 1000
Is it possible to safely remove the extra lines in LT without waiting until we merged the workspaces that existed before the update batch has been done? I hope that it will so improve the performance of refreshWorkspace.
I thought that something like this can do, but it does not remove the other ranks, is:
execute dbms_wm.PurgeTable( table_id => 'test.wm_test_table', archive_table => null, where_clause => 'id not in (select id from test.wm_test_table)', instant=>null, workspace => 'LIVE', purgeAfter => false);
This question is similar to
Lines left in the table LT after removal of the direct workspace and the removal of all workspaces
and
but I'm still not sure.
Thank you
John
Hello
This behavior is expected and it is due to the test_workspace2 workspace. A compression operation will not allow compressed range to include a backup implicit point that is created for a child workspace. This is done to preserve the integrity of this workspace. The initial 1000 lines are all lines that are visible from test_workspace2. Removal of these lines would leave test_workspace2 will 0 lines in there. Lines 1000 updates are the lines that do not appear on LIVE. So, given that the two sets of lines are needed, none of the lines can be deleted physically. A compression operation will never change the view of data for any workspace. It only removes the unnecessary records. The two options in order to be able to compress these lines is to either delete (as you did) or refresh test_workspace2. The refresh operation would move the implicit savepoint for the workspace to a version that isn't after all 2000 lines in the table _LT and allow the dressing to remove first half of them because they are no longer needed by any child workspace.
With respect to the performance of RefreshWorkspace, I would need to see a trace of the transaction file. But who should rather get through the SR you filed.
Kind regards
Ben
-
How to capture what oracle object delete rows in the table?
Hi all
I have a table in which I am storing data deleted from the main table. I have a delete on the main table statements in the various packages, now I want to capture what sql statement what package is remove rows from the table. I created the trigger to insert data into the backup table. I'm using oracle 11g.
Please help me...
Thanks and greetings
Vidyasagar.B
You can use DBMS_UTILITY.FORMAT_CALL_STACK. SQL> create table t 2 ( 3 no integer 4 ); Table created. SQL> create table t_log 2 ( 3 str clob 4 ); Table created. SQL> create or replace trigger t_trig before insert on t 2 begin 3 insert into t_log(str) values (dbms_utility.format_call_stack); 4 end; 5 / Trigger created. SQL> create or replace procedure p 2 as 3 begin 4 insert into t (no) values (1); 5 end; 6 / Procedure created. SQL> create or replace package pkg 2 as 3 procedure run; 4 end; 5 / Package created. SQL> create or replace package body pkg 2 as 3 procedure run 4 is 5 begin 6 p; 7 end; 8 end; 9 / Package body created. SQL> exec pkg.run PL/SQL procedure successfully completed. SQL> select * from t_log; STR -------------------------------------------------------------------------------- ----- PL/SQL Call Stack ----- object line object handle number name 3abbbc6d8 1 anonymous block 3ad03bf88 2 KARTHICK.T_TRIG 3a51a18a8 4 procedure KARTHICK.P 3ac4f1508 6 package body KARTHICK.PKG 3ac91c250 1 anonymous block
-
Inserting rows through the procedure of database
Hello!
I have a small dilemma. I have to insert rows in the database through pl/sql procedure table. I can't use entity objects, because the insertion is very specific, so it must be done through the procedure of database.
What is the workflow for my case? Use view object with transient attributes the right way? I have to show form insertion (with entries for the database parameters), and then call my procedure to fill the db table. Where can I find more information on that? Everyone had similar cases? Any info?
Best regards, Marko[Url http://download.oracle.com/docs/cd/E21764_01/web.1111/b31974/bcadveo.htm#sm0328] does help?
John
-
Why a whole page of rows in the table is duplicate in FrameMaker 10?
I have a long table in one of my chapters in FrameMaker 10. The table is seven pages long, but a whole page of dollars of rows in the table is duplicated, if the table really should only be six pages long. The first four pages look like this:
Page 1: Lines 1-7
Page 2: Lines 8-16
Page 3: Lines 8-16
Page 4: Lines 17-28
Headers and footers are completely unaffected. All the markers from index in the rows of the table are also doubled, so all of the Page 3 index markers are also appearing in the IX file. I've combed through the file on unresolved references, but I can't find. Also, if I insert a blank line in Page 2, all lines is duplicated is no longer. If I insist on the entire table, Page 2 does not seem to be highlighted. I can't select or change anything on the Page 2.
I'm absolutely baffled why this is happening. A glimpse of what is causing this rowset ghosts to appear?
Some ideas to play with:
- Did you wash MIF file to clean small codes that may have been imported?
- Have you checked the duplicate lines to check that they are defined in the body and not header?
-
CFHTTP Parse page for the last row of the table
OK, so I need to analyze the page returned from a cfhttp call and select the last row in a table. I then take the value of this line and run another cfhttp to another page. This returns an html page where I'll need to parse for extr the img tag. Any thoughts?
Here is a code:
"" < cfhttp url = ' http://SERVERNAME/GetPhotoEncounters.cgi ' method = 'post' resolveurl = "yes" >
< name cfhttpparam = 'TXTBox' type = "formfield" value = "17133804" >
< / cfhttp >
He returns (at the source):
"< form method = post name ="EncounterInfo"action =" http://SERVERNAME/GeneratePhotos.cgi "> "
< table border units is relative width is 0.9 colspec "C2 C1 C1 C1 C1 C1 C1 C1 C1" = >
< th align = center > < view h3 > < / h3 >
< th align = center > < No. h3 > < / h3 >
< th align = center > < ID h3 > < / h3 >
< th align = center > < Type of encounter h3 > < / h3 >
< th align = center > < h3 > Date & time < / h3 >
< th align = center > < Type h3 > < / h3 >
< th align = center > < system indicator X h3 > < / h3 >
< th align = center > < location Images h3 > < / h3 >
< th align = center > < h3 database Ind > < / h3 >
<! - data - >
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "36659622; 02/06/05 13:31:29 ">
< td align = center > 36659622
< td align = center > 17133804
< td align = center > BP
< td align = center > 02/06/05 13:31:29
< td align = center > F
< td align = center > ENF
< td align = center > 967
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "37070943; 09/06/05 14:28:28 ">
< td align = center > 37070943
< td align = center > 17133804
< td align = center > BP
< td align = center > 09/06/05 14:28:28
< td align = center > R
< td align = center > ENF
< td align = center > 968
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "38114421; 23/06/05 19:03:50 ">
< td align = center > 38114421
< td align = center > 17133804
< td align = center > BP
< td align = center > 23/06/05 19:03:50
< td align = center > R
< td align = center > ENF
< td align = center > 968
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "38216303; 24/06/05 22:30:42 ">
< td align = center > 38216303
< td align = center > 17133804
< td align = center > BP
< td align = center > 24/06/05 22:30:42
< td align = center > R
< td align = center > ENF
< td align = center > 968
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "41424139; 04/08/05 22:48:21 ">
< td align = center > 41424139
< td align = center > 17133804
< td align = center > BP
< td align = center > 04/08/05 22:48:21
< td align = center > R
< td align = center > ENF
< td align = center > 968
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "42971024, 19/08/05 11:59:35" >
< td align = center > 42971024
< td align = center > 17133804
< td align = center > BP
< td align = center > 19/08/05 11:59:35
< td align = center > R
< td align = center > ENF
< td align = center > 968
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "43676008, 15/09/05 00:43:33" >
< td align = center > 43676008
< td align = center > 17133804
< td align = center > BP
< td align = center > 15/09/05 00:43:33
< td align = center > R
< td align = center > ENF
< td align = center > 968
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "51501911; 20/02/06 01:17:16 ">
< td align = center > 51501911
< td align = center > 17133804
< td align = center > BP
< td align = center > 20/02/06 01:17:16
< td align = center > R
< td align = center > ENF
< td align = center > 970
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "52543143; 20/03/06 06:06:56 ">
< td align = center > 52543143
< td align = center > 17133804
< td align = center > BP
< td align = center > 20/03/06 06:06:56
< td align = center > R
< td align = center > ENF
< td align = center > 971
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "52812077, 30/03/06 08:36:15" >
< td align = center > 52812077
< td align = center > 17133804
< td align = center > BP
< td align = center > 30/03/06 08:36:15
< td align = center > R
< td align = center > ENF
< td align = center > 971
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "52983796; 07/04/06 15:15:32 ">
< td align = center > 52983796
< td align = center > 17133804
< td align = center > BP
< td align = center > 07/04/06 15:15:32
< td align = center > R
< td align = center > ENF
< td align = center > 971
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "53243687; 23/04/06 14:58:23 ">
< td align = center > 53243687
< td align = center > 17133804
< td align = center > BP
< td align = center > 23/04/06 14:58:23
< td align = center > R
< td align = center > ENF
< td align = center > 972
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "54447246; 24/06/06 00:46:23 ">
< td align = center > 54447246
< td align = center > 17133804
< td align = center > BP
< td align = center > 24/06/06 00:46:23
< td align = center > R
< td align = center > ENF
< td align = center > 973
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "56717661; 05/07/06 06:45:19 ">
< td align = center > 56717661
< td align = center > 17133804
< td align = center > BP
< td align = center > 07/05/06 06:45:19
< td align = center > R
< td align = center > ENF
< td align = center > 973
< td align = center > R
< b >
< td align = center > < input type = "checkbox" name = "eid" value = "61073876; 28/08/06 02:13:33 ">
< td align = center > 61073876
< td align = center > 17133804
< td align = center > BP
< td align = center > 28/08/06 02:13:33
< td align = center > R
< td align = center > ENF
< td align = center > 974
< td align = center > R
< /table >
< /Center >
< p align = "left" > < input type = "checkbox" name = "photoOnly" > < p >
< INPUT TYPE = "SUBMIT" NAME = 'SUBMIT_BUTTON' VALUE = 'Show the photo (s)' >
< INPUT TYPE = "BUTTON" NAME = "SELECT_ALL_BUTTON" VALUE = "Select all" onClick = "doSelectAll (15)" >
< INPUT TYPE = "RESET" NAME = "CLEAR_ALL_BUTTON" VALUE = "Remove all" >
< input type = "hidden" name = 'TXTBox' value = "17133804" >
< br >
< / make >
I need the last row of the table checbox value. In this way, I can present this value on the next page via cfhttp. That would return:
border = 1 >
< b >
< td align = "center" > < font color = 'blue' size = 4 > EID < / make >
< td align = "center" > < font color = 'blue' size = 4 > Date < / make >
< td align = "center" > < font color = 'blue' size = 4 > picture < / make >
< td align = "center" > < font color = 'blue' size = 4 > picture < / make >
< td align = "center" > < font color = 'blue' size = 4 > picture < / make >
< b >
< td > < b > < /b > 61073876
< td > < b > 28/08/06 < /b > < br > < b > < /b > 02:13:33
< td >
< img src = "" / image_cache/61073876.jpeg ' height width 200 = 200 = > "
< td >
< img src = "" / image_cache/61073876_F2.gif ' height width 200 = 200 = > "
< td >
< img src = "" / image_cache/61073876_F7.gif ' height width 200 = 200 = > "
< /table >
On this basis, I need to the variable value, CBC three img tags. Then I can insert these values into a local database.
Help me please, because I'm drowning on this one!
Thank you all.You could loop on the content of the file and then parsing each line using a regular expression to extract your checkbox values and image. This is code that I wrote which gets the last box and a panoply of images based on your example. You may need to adjust the regular expression a bit if your example is not the same as the HTML code that you are monitoring.
-
Creation of 5 rows in table B for each row in the table has
For each row in the table, I want 5 rows to be created in the table b. table B should look likecreate table A (col1 number, col2 varchar2(20) ) / create table B (col1 number, col2 varchar2(20) ) / insert into A values (1,'Jane'); insert into A values (2,'Kate'); insert into A values (3,'Stomp'); SQL> select * from a; COL1 COL2 ---------- ----------------- 1 Jane 2 Kate 3 Stomp
How can I do this?COL1 COL2 ---------- ----------------- 1 Jane 2 Jane 3 Jane 4 Jane 5 Jane 6 Kate 7 Kate 8 Kate 9 Kate 10 Kate 11 Stomp 12 Stomp 13 Stomp 14 Stomp 15 Stomp
Hello
A way
insert into b select rownum*5 , col2 from a union all select rownum*5+1, col2 from a union all select rownum*5+2, col2 from a union all select rownum*5+3, col2 from a union all select rownum*5+4, col2 from a
Concerning
Anurag -
How to insert rows in multiple tables in a sql
I want to know how to insert multiple lines in a single sql statement.
Let's insert records into the table emp and dept in a sql statement.
Thank youIt's here
SQL>l 1 insert all 2 into emp values(8888,'WADE','MANAGER',7839,'01-MAR-2008',5000,100,20) 3 into dept values(50,'MARKETING','NEW YORK') 4* select * from dual SQL> / 2 rows created.
SS
Maybe you are looking for
-
G61 - 320CA: upgrade CPU for laptop PC HP G61 - 320CA
Hello. I bought this laptop in 2005 (new) Product name: HP G61 - 320CA (laptop, laptop) Product number: VM345UA #ABC Microprocessor: of GHz AMD Athlon II Dual-Core processor for notebook PC M300 2.00 Cache of the microprocessor; 1 MB L2 Cache
-
After 15 minutes the PC stops working on it
After 15 minutes PC turns off while working on this subject, if I'm checking my email or Internet explorer (version 9).
-
I can't scroll any page with my pad, I can only scroll with the scroll bars! So slow frustrating and difficult! Any help out there?
-
can I upgrade my RAM in my acer aspire E15 E5 - 571 G-541V pls I need help
my laptop I plan to upgrade my 4 GB L 16 gb DDR3 memory ddr3 ram. Please help me
-
Removing a hard drive of matrix Raid 5
Hello I have a Dell Server 2008 R1 server. The server came installed with 3 hard disks from 146 GB hot-swapable. I added two additional 146 GB drives. I used Dell OpenManage Server Administrator to add additional hard drives to the table. Now, one of