Oracle Version: 10g.
in my Mapper.xml
<insert id="insert" useGeneratedKeys="true">
<selectKey keyProperty="id" resultType="int" order="BEFORE">
SELECT AUTO_INCR.nextVal from dual;
</selectKey>
INSERT INTO TABLE1(id,email,subject)
VALUES(#{id},#{email},#{subject})
</insert>
My table structure in oracle:
id PK NUMBER
email Varchar2
subject Varchar2
I also have a sequence created named:AUTO_INCR
But this returns me with a error: ORA-0091 invalid Character
i called it at my page by:
http.post({
method: 'POST',
url: 'myurl',
data: {
email: email,
subject : subject
}
})
Any idea how to carry on ?? I tried to research on the error but to no avail , i couldn't solve it.