INSERT INTO tattachment
( tattachmentid
, siteid
, ownerid
, ownertable
, ftype
, createby
, createdate
, postfix
, serialnumber
, fdocument
, fobsurl
, fobsurl_minimage
, mpctaskid
, contentlength
, fobsurl_compressimage)
VALUES ($tattachmentid$
       , $siteid$
       , $ownerid$
       , $ownertable$
       , $ftype$
       , $createby$
       , getDate()
       , $postfix$
       , $serialnumber$
       , $fdocument$
       , $fobsurl$
       , $fobsurl_minimage$
       , $mpctaskid$
       , $contentlength$
       , $fobsurl_compressimage$)