torg
11-18-2002, 04:06 AM
I have a sequence named: REISE_IDSEKVENS
I have this line in a procedure in oracle:
INSERT INTO TBLREISEHISTORIE(REISE_ID ,RUTE_ID, FORNAVN , DATO , EMAIL) VALUES (REISE_IDSEKVENS.NEXTVAL,INPUTT_ruteID, INPUTT_Fornavn, INPUTT_dato, INPUTT_EMAIL);
As everybody understand, I wish to insert the value of the sequence in the column Reise everytime i excecute the procedure.
Is this the correct way of doing it?(call asequence)
Also I receive following errormessage:
"Can not insert NULL IN "TBLREISEHISTORIE.EMAIL
In VB i`v got the line:
Dim InsReiseParm5 As OleDb.OleDbParameter = InsReise.Parameters.Add("INPUTT_EMAIL", OleDb.OleDbType.VarChar)
I know for a fact that InsReiseParm5.Value = txtEpost.Text.
Anyne who can tell my what`s wrong?
I have this line in a procedure in oracle:
INSERT INTO TBLREISEHISTORIE(REISE_ID ,RUTE_ID, FORNAVN , DATO , EMAIL) VALUES (REISE_IDSEKVENS.NEXTVAL,INPUTT_ruteID, INPUTT_Fornavn, INPUTT_dato, INPUTT_EMAIL);
As everybody understand, I wish to insert the value of the sequence in the column Reise everytime i excecute the procedure.
Is this the correct way of doing it?(call asequence)
Also I receive following errormessage:
"Can not insert NULL IN "TBLREISEHISTORIE.EMAIL
In VB i`v got the line:
Dim InsReiseParm5 As OleDb.OleDbParameter = InsReise.Parameters.Add("INPUTT_EMAIL", OleDb.OleDbType.VarChar)
I know for a fact that InsReiseParm5.Value = txtEpost.Text.
Anyne who can tell my what`s wrong?