glenquagmire31
New member
- Local time
- Tomorrow, 01:30
- Joined
- Jul 10, 2023
- Messages
- 3
Hello all.
I have been trying to import data from a csv file unsuccessfully. Upon examining the file it is full of SQL insert statements.
Does anyone have any idea how I could go about importing the data to a Table?
I am including the first 5 rows of the file below.
REM INSERTING into EXPORT_TABLE
SET DEFINE OFF
Insert into EXPORT_TABLE (TREATMENT,YEAR,MONTH,ATC_CODE,ACT_SUBS,DOSE_UNIT,CONTENT,PIECES_PER_PACKAGE,FORM_CODE,SPECIALTY,ZIP_CODE,AGE,SEX,ICD10_CODE) values ('1858021806','2022','05','J01CA04','AMOX TRIHYDRATE','DSX','1G/TAB','18','DISP.TAB','GP','18532','46','F','K05.2')
Insert into EXPORT_TABLE (TREATMENT,YEAR,MONTH,ATC_CODE,ACT_SUBS,DOSE_UNIT,CONTENT,PIECES_PER_PACKAGE,FORM_CODE,SPECIALTY,ZIP_CODE,AGE,SEX,ICD10_CODE) values ('1856614429','2022','05','J01MA12','LEVOFLOXACIN HEMIHYDRATE','DSX','500MG/TAB','5','F.C.TAB','PNEU','74100','49','M','J41.1')
and it goes on and on....
I have been trying to import data from a csv file unsuccessfully. Upon examining the file it is full of SQL insert statements.
Does anyone have any idea how I could go about importing the data to a Table?
I am including the first 5 rows of the file below.
REM INSERTING into EXPORT_TABLE
SET DEFINE OFF
Insert into EXPORT_TABLE (TREATMENT,YEAR,MONTH,ATC_CODE,ACT_SUBS,DOSE_UNIT,CONTENT,PIECES_PER_PACKAGE,FORM_CODE,SPECIALTY,ZIP_CODE,AGE,SEX,ICD10_CODE) values ('1858021806','2022','05','J01CA04','AMOX TRIHYDRATE','DSX','1G/TAB','18','DISP.TAB','GP','18532','46','F','K05.2')
Insert into EXPORT_TABLE (TREATMENT,YEAR,MONTH,ATC_CODE,ACT_SUBS,DOSE_UNIT,CONTENT,PIECES_PER_PACKAGE,FORM_CODE,SPECIALTY,ZIP_CODE,AGE,SEX,ICD10_CODE) values ('1856614429','2022','05','J01MA12','LEVOFLOXACIN HEMIHYDRATE','DSX','500MG/TAB','5','F.C.TAB','PNEU','74100','49','M','J41.1')
and it goes on and on....