我正在使用下面的 SQL 脚本将几条记录插入到我使用 create 语句创建的新表中。但我收到以下错误
ORA-00905: 缺少关键字
下面是非常简单的脚本。我想我错过了一些东西。;
仅供参考,我在最后和没有都进行了测试,;
但它产生了相同的结果。
知道我在这里缺少什么吗?
create table winlossbydate1 (
statusdate Date,
Status Char(5));
Insert into WinLossByDate (StatusDate, Status)
Values (TO_DATE('2011-03-01','yyyy-mm-dd'), 'win');
Insert into WinLossByDate (StatusDate, Status)
Values (TO_DATE('2011-03-01','yyyy-mm-dd'), 'lose');
Insert into WinLossByDate (StatusDate, Status)
Values (TO_DATE('2011-03-01','yyyy-mm-dd'), 'lose');
Insert into WinLossByDate (StatusDate, Status)
Values (TO_DATE('2011-03-01','yyyy-mm-dd'), 'lose');
Insert into WinLossByDate (StatusDate, Status)
Values (TO_DATE('2011-03-01','yyyy-mm-dd'), 'win');
Insert into WinLossByDate (StatusDate, Status)
Values (TO_DATE('2011-03-02','yyyy-mm-dd'), 'lose');
Insert into WinLossByDate (StatusDate, Status)
Values (TO_DATE('2011-03-02','yyyy-mm-dd'), 'win');
Insert into WinLossByDate (StatusDate, Status)
Values (TO_DATE('2011-03-02','yyyy-mm-dd'), 'win');
Insert into WinLossByDate (StatusDate, Status)
Values (TO_DATE('2011-03-02','yyyy-mm-dd'), 'win')