解决办法:
select * From gl_mend
select * into accfa from AccInformation where cSysID=‘fa’
select * from AccInformation where cSysID=‘fa’ and cName=‘iLastPeriod’
select * from AccInformation where cSysID=‘fa’ and cName=‘dWritableDate’
update AccInformation set cvalue=‘12’ where cSysID=‘fa’ and cName=‘iLastPeriod’
update AccInformation set cvalue=‘2017-12-31’ where cSysID=‘fa’ and cName=‘dWritableDate’