'select ''全部'' as 所属公司, ''111'' as 机构号 union all select organization_name as 所属公司, symbol as 机构号 from organization where '''+userinfo.PersonOrgGroup+''' like ''%'' +symbol+ ''%'' '
var
a,b,c: string;
begin
c := 'orgid';
a := '001,002,';
b := ''''+ a +'''' + ' like ' + '''%''+' + c + '+''%''';
ShowMessage(b);