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