update ies.t_nsi_update
set isbulkload = true
where Encoding = 866 or 
type_ = (select EntityId from VCLib.T_ENTITIES where EntName = 'NSI_UPDATE_EXCEL') or
type_ = (select EntityId from VCLib.T_ENTITIES where EntName = 'NSI_UPDATE_DBF');