Subject | RE: [firebird-support] Return PK Value |
---|---|
Author | Svein Erling Tysvær |
Post date | 2013-08-23T06:38:35Z |
>I would like to learn the primary key value of successful SQL Insert command. The following syntax wasAssuming pkImage is the field name of the primary key:
>picked up from (I think) a reliable source, cannot recall where. It generates an error at 'Output'.
>Could you please show me the correct syntax.
>
>'Insert into table( column set ) Values(value set)' Output inserted.pkImage
Insert into table( column set ) Values(value set) returning pkImage
See http://www.firebirdsql.org/refdocs/langrefupd21-insert.html for definition.
HTH,
Set