INSERT INTO LD0P0Q01 (KODTYP,KOD,KLARTEXT,AKTIV,EXTKOD,XNUM1,
XTXT1,XNUM2,XTXT2,XNUM3,XTXT3,XNUM4,XTXT4,XNUM5,XTXT5,
UPDDAT,UPDSIGN,XNUM6,XTXT6,XNUM7,XTXT7,XNUM8,XTXT8,XNUM9,XTXT9,
XNUM10,XTXT10,SORTORDN,XNUM11,XTXT11,XNUM12,XTXT12,XNUM13,XTXT13,
XNUM14,XTXT14,XNUM15,XTXT15,XNUM16,XTXT16,XNUM17,XTXT17,
XNUM18,XTXT18,XNUM19,XTXT19,XNUM20,XTXT20) SELECT 
'ANTTYP',2,
'Journalfört meddelande',1,' ',
0,' ',0,
' ',0,' ',
0,' ',0,
' ',
'170211','LD0',
0,' ',0,
' ',0,' ',
0,' ',0,
' ',0,
0,' ',0,' ',0,' ',0,' ',0,' ',0,' ',0,' ',0,' ',0,' ',0,' '
WHERE NOT EXISTS (SELECT * FROM LD0P0Q01 WHERE KODTYP='ANTTYP' AND KOD=2)
GO