可能是什么问题?
getDates :: MultiBalanceReport -> [DateSpan]
getDates (MultiBalanceReport (date,_,_)) = date
错误讯息:
ORA-00907:缺少右括号 00907. 00000 - “缺少右括号”
答案 0 :(得分:2)
删除NULL_MONTO和NULL_CANT_VENTAS:
CREATE TABLE ASIGNACION_ANUAL (
ANIO NUMBER(4),
COD_VENDEDOR VARCHAR2(4),
MONTO_ASIGNACION NUMBER(9) NULL,
CANT_VENTAS NUMBER(2) NULL,
CONSTRAINT ASIGNACION_ANUAL_PK PRIMARY KEY (ANIO, COD_VENDEDOR)
)