Hi,
I am starting out with Oracle and using Oracle SQL PLUS. I am trying to load a .csv file into a table I created using the loader, but I get a "missing SELECT keyword" when I'm trying to load it. This is how I'm trying to do it:
LOAD DATA
INFLIE 'P:HHH.csv'
INTO TABLE ER_PHAR
REPLACE
FIELDS TERMINATED BY ','
(ID_CD, NCPDP_CD, NCPDP2_CD,
NPI_CD , PHARMACY_DE,
PHARMACY_NAME_DE,
ADDRESS_CD , CITY_DE,
STATE_DE, ZIP_CD,
PHONE_CD, FAX_CD,
EMAIL_CD, CHAIN_CODE_ID,
REGION_CD, BU_L_D_C2_CD,
L_BU_L_DC_A_CD ,
PIMS_ID, LEGACY_GL_ID, EPS_PH_ID_CD, COMMENTS_CD);
the fields at the end are those in my table. I've tried using the SELECT statment by trying this:
SELECT
LOAD DATA
INFLIE 'P:\Eric\Project\ALL_KP_OUTPATIENT_PHARMACIES_20100223.csv'
INTO TABLE ER_PHARMACY_TEST
REPLACE
FIELDS TERMINATED BY ','
(ID_CD, NCPDP_CD, NCPDP2_CD,
NPI_CD , PHARMACY_DE,
PHARMACY_NAME_DE,
ADDRESS_CD , CITY_DE,
STATE_DE, ZIP_CD,
PHONE_CD, FAX_CD,
EMAIL_CD, CHAIN_CODE_ID,
REGION_CD, BU_L_D_C2_CD,
L_BU_L_DC_A_CD ,
PIMS_ID, LEGACY_GL_ID, EPS_PH_ID_CD,
COMMENTS_CD)
FROM
DUAL;
But it says FROM keyword wasn't found where expected. Thanks to anyone for their help in advance.
The greatest risk, is not taking one.
I am starting out with Oracle and using Oracle SQL PLUS. I am trying to load a .csv file into a table I created using the loader, but I get a "missing SELECT keyword" when I'm trying to load it. This is how I'm trying to do it:
LOAD DATA
INFLIE 'P:HHH.csv'
INTO TABLE ER_PHAR
REPLACE
FIELDS TERMINATED BY ','
(ID_CD, NCPDP_CD, NCPDP2_CD,
NPI_CD , PHARMACY_DE,
PHARMACY_NAME_DE,
ADDRESS_CD , CITY_DE,
STATE_DE, ZIP_CD,
PHONE_CD, FAX_CD,
EMAIL_CD, CHAIN_CODE_ID,
REGION_CD, BU_L_D_C2_CD,
L_BU_L_DC_A_CD ,
PIMS_ID, LEGACY_GL_ID, EPS_PH_ID_CD, COMMENTS_CD);
the fields at the end are those in my table. I've tried using the SELECT statment by trying this:
SELECT
LOAD DATA
INFLIE 'P:\Eric\Project\ALL_KP_OUTPATIENT_PHARMACIES_20100223.csv'
INTO TABLE ER_PHARMACY_TEST
REPLACE
FIELDS TERMINATED BY ','
(ID_CD, NCPDP_CD, NCPDP2_CD,
NPI_CD , PHARMACY_DE,
PHARMACY_NAME_DE,
ADDRESS_CD , CITY_DE,
STATE_DE, ZIP_CD,
PHONE_CD, FAX_CD,
EMAIL_CD, CHAIN_CODE_ID,
REGION_CD, BU_L_D_C2_CD,
L_BU_L_DC_A_CD ,
PIMS_ID, LEGACY_GL_ID, EPS_PH_ID_CD,
COMMENTS_CD)
FROM
DUAL;
But it says FROM keyword wasn't found where expected. Thanks to anyone for their help in advance.
The greatest risk, is not taking one.