Subject | Re: [firebird-support] Insert within a stored procedure not inserting records |
---|---|
Author | Ann W. Harrison |
Post date | 2007-09-19T20:27:50Z |
Peter Welch wrote:
create procedure INS_SC (MRN intege, AdmitDateTime timestamp,
STATUS (char(1))
as begin
insert into sc_list (mrn, admitdatetime, status)
value (:MRN, :AdmitDateTime, :status);
end
Good Luck,
Ann
> I am trying to Insert within a stored procedure but it does not work -Err, I'm surprised it compiles.
>should be
> The following is the metadata:
>
> Create PROCEDURE INS_SC ( MRN INTEGER
> , ADMITDATETIME TIMESTAMP
> , STATUS CHAR( 1 ) )
> AS
> BEGIN
>
> insert into sc_list
> (mrn, admitdatetime, status)
> values (? /* PRM_0 */ , ? /* PRM_1 */ ,? /* PRM_2 */ );
>
> END
create procedure INS_SC (MRN intege, AdmitDateTime timestamp,
STATUS (char(1))
as begin
insert into sc_list (mrn, admitdatetime, status)
value (:MRN, :AdmitDateTime, :status);
end
Good Luck,
Ann