Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
10 Finance 1
31 Sales 1
32 Sales 2
33 Sales 3
34 Sales 4
35 Sales 5
41 Operations 1
42 Operations 2
43 Operations 3
44 Operations 4
45 Operations 5
SQL> create table dept (id number, name varchar2(50), region_id number);
Table created.
1) Invoke Word
2) Open <flat-file-name>
3) Edit -> Replace -> (Find what) " " [two adjacent spaces] -> (Replace with) "~" [some obsucure, but visible character) -> [Replace All]
4) Edit -> Replace -> (Find what) "~~" [two adjacent special characters] -> (Replace with) "~" [one special character]
5) Repeat step 4 until all "~~" appear as "~".
6) Edit -> Replace -> (Find what) "~" [one special character] -> (Replace with) "','" [Oracle INSERT values-separator punctuation]
7) Edit -> Replace -> (Find what) "','^p','" [two sets of value separators split by a "^p", MS Word's method of addressing a <cr-lf> pair] -> (Replace with) "');^pINSERT INTO DEPT VALUES ('" [proper syntax to INSERT values into the DEPT table]
8) Clean up the first and last lines of the flat file to remove any extraneous INSERT code.
9) File -> Save As -> ('Save as' type): "Text Only (*.txt)" -> (File name): <flat-file-name>.[b]sql[/b] -> [Save] (Answer 'Yes' to saving without formatting)
10) Exit MS Word
11) Using Notepad, Open <flat-file-name>.[b]sql[/b]
12) Remove extraneous MS Word lines at the end of the file of INSERT commands.
13) Save the file of INSERTs
1)Connect to Oracle as target owner of table.
2) SQL> @<flat-file-name>
(Example INSERT-script proof-of-concept execution:)
SQL> @dept
1 row created.
...
1 row created. (for each INSERT)
SQL> select * from dept;
ID NAME REGION_ID
---------- -------------------------------------------------- ----------
10 Finance 1
31 Sales 1
32 Sales 2
33 Sales 3
34 Sales 4
35 Sales 5
41 Operations 1
42 Operations 2
43 Operations 3
44 Operations 4
45 Operations 5
11 rows selected.