显示无效的标识符

时间:2019-06-26 14:39:04

标签: oracle oracle12c

在执行以下查询时获取无效的标识符错误

INSERT INTO "PRESCRIPTIONS"(
                            "order_id",
                            "customer_id",
                            "colleague_name",
                            "type",
                            "status_code",
                            "create_date_time",
                            "last_update_date_time",
                            "hkpg_flag",
                            "patient_id",
                            "store_num",
                            "store_name",
                            "is_same_as_last_month",
                            "remarks",
                            "collection_time",
                            "store_phone"
                           )
     VALUES (
             1,
             10,
             'test',
             'A',
             'Active',
             '11-JUN-19',
             '11-JUN-19',
             1,
             '134',
             '1728',
             'Donnybrook Morehampton Road',
             1,
             'dfsdfsdf',
             'Today',
             '9845123654'
            );

下面是我的表的结构:-

CREATE TABLE prescriptions
(
    order_id                                INTEGER NOT NULL,
    customer_id                             INTEGER NOT NULL,
    patient_id                              INTEGER NOT NULL,
    colleague_name                          VARCHAR(255) NOT NULL,
    TYPE                                    VARCHAR(50) NOT NULL,
    store_num                               VARCHAR(10) NOT NULL,
    store_name                              VARCHAR(255) NOT NULL,
    status_code                             VARCHAR(20) NOT NULL,
    is_same_as_last_month                   NUMBER(1) NOT NULL CHECK(is_same_as_last_month IN (0, 1)),
    collection_time                         VARCHAR(50) NOT NULL,
    create_date_time                        DATE NOT NULL,
    remarks                                 VARCHAR(255) NOT NULL,
    last_update_date_time                   DATE NOT NULL,
    hkpg_flag                               NUMBER(1) NOT NULL CHECK(hkpg_flag IN (0, 1)),
    store_phone                             VARCHAR(20) NOT NULL
);

0 个答案:

没有答案