I use Firebird 4 and want to do this:
- copy one existing dataset, no matter if with * or listed items
- make my generator make an new id within the same table
- copy the values into it
I tried it all, with all brackets settings.
The error message jumps just before the bracket and claims "invalid token".
How to make it work?
If possible I prefer select *, but there was a bug with it in a previous Firebird version (2.5.)
This version below does not work.
The idea was: select everything except the id = id_einkommen and make Firebird generate a new id with inserting the values of the old one, e.g. 10.
((
SELECT a.TYP
, a.ISIN
, a.WKZ
, a.BEZEICHNUNG
, a.EINTRAGSDATUM
, a.EMITTENT, a.EMISSIONSDATUM, a.AGIO, a.RENDITE_P_A, a.EMISSIONSPREIS,
a.LAND, a.BRANCHE, a.EMISSIONSVOLUMEN, a.ZINSBERECHNUNG, a.BESONDERHEITEN,
a.KUPONTEXT, a.NOMINALZINSSATZ, a.MODIFIED_DURATION, a.RATING, a.WAEHRUNG,
a.ZUHANDELNAN, a.MATURITY, a.KLEINSTEEINHEIT, a.ERSTERKUPON, a.LETZTERKUPON,
a.EMISSIONSKURS_IN_PROZENT, a.TILGUNGSKURS_IN_PROZENT,
a.KAUFKURS_IN_PROZENT, a.STEUER_IN_PROZENT, a.STEUER_ALS_BETRAG,
a.KUPONS_IM_JAHR, a.KUPON_ALS_BETRAG, a.DURATION, a.BEZEICHNUNG_LANG,
a.BETRAG_INVESTIERT, a.KURS, a.SPESEN, a.DEPOT, a.MARKETMAKER,
a.KAUFPREIS_SUMME )
a.ID_EINKOMMEN = '10');