This syntax is only allowed in Oracle 11 or later.
The (unsupported and outdated) 9i version did not support direct assignment of a sequence value.
You need to use a select into
instead:
select ID_CONSISTANCE.nextval
into :new.code
FROM dual;
And you should really plan an upgrade to a current version of Oracle (11.x or 12.x)