All,
I'm trying to write a macro in Visual Studio.NET to place INSERT statements around a data dictionary. I'm familiar with creating simple ones, but not sophisticated ones. I'd like to populate an Oracle table with this data for future use. A small sample of the data dictionary looks like this:
As you can see, the file contains inconsistent data. Some have "/" at the end followed by some upper case letters, so I would like to remove the "/" and everything to the right of it. Some words have nothing after it, so that'll make it a little more difficult. Not sure why that is, but I'd like to wrap this around each word:
This file has over 62,000 lines in it. it might be better to write a program to parse the data and wrap the statements around it. I'll do that if it is a last resort. Any ideas?
Todd
I'm trying to write a macro in Visual Studio.NET to place INSERT statements around a data dictionary. I'm familiar with creating simple ones, but not sophisticated ones. I'd like to populate an Oracle table with this data for future use. A small sample of the data dictionary looks like this:
Code:
a
A
AA
AAA
Aachen/M
aardvark/SM
Aaren/M
Aarhus/M
Aarika/M
Aaron/M
AB
aback
abacus/SM
abaft
Abagael/M
Abagail/M
abalone/SM
abandoner/M
abandon/LGDRS
abandonment/SM
abase/LGDSR
abasement/S
abaser/M
abashed/UY
abashment/MS
abash/SDLG
abate/DSRLG
abated/U
abatement/MS
abater/M
abattoir/SM
Abba/M
Abbe/M
abbé/S
abbess/SM
Abbey/M
abbey/MS
Abbie/M
Abbi/M
Abbot/M
abbot/MS
Abbott/M
abbr
abbrev
As you can see, the file contains inconsistent data. Some have "/" at the end followed by some upper case letters, so I would like to remove the "/" and everything to the right of it. Some words have nothing after it, so that'll make it a little more difficult. Not sure why that is, but I'd like to wrap this around each word:
Code:
INSERT INTO EN_US (EN_US_WORD)
VALUES ('abacus');
This file has over 62,000 lines in it. it might be better to write a program to parse the data and wrap the statements around it. I'll do that if it is a last resort. Any ideas?
Todd