MySQL для обновления атрибута XML

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

UPDATE biblioitems
SET marcxml = UpdateXML(marcxml,'datafield[@tag="520"]/subfield[@code="3"]',
                     'datafield[@tag="520"][@ind1="3"]/subfield[@code="a"]')
WHERE biblionumber = '220405';

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

<datafield tag="300" ind1=" " ind2=" ">
  <subfield code="f">article</subfield>
</datafield>
<datafield tag="520" ind1=" " ind2=" ">
  <subfield code="3">A description of something here</subfield>
</datafield>
<datafield tag="655" ind1=" " ind2=" ">
  <subfield code="a"></subfield>
</datafield>

Error: User Rate Limit Exceeded

<datafield tag="300" ind1=" " ind2=" ">
  <subfield code="f">article</subfield>
</datafield>
<datafield tag="520" ind1="3" ind2=" ">
  <subfield code="a">A description of something here</subfield>
</datafield>
<datafield tag="655" ind1=" " ind2=" ">
  <subfield code="a"></subfield>
</datafield>

Error: User Rate Limit Exceeded

Ответы на вопрос(3)

UPDATE biblioitems SET marcxml = UpdateXML(marcxml,'datafield[@tag="520"]/subfield[@code="3"]/@code', 'code="a"') WHERE biblionumber = '220405';

Error: User Rate Limit Exceededselect updateXML('<x a="aaa" b="bbb">xxxxxx<c>cccc</c></x>', 'x/@a', 'a="aaa" d="ddd"')

Error: User Rate Limit Exceededattribute::attError: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

SELECT UpdateXML('<root><sub att="foo" xatt="bar">Content Text</sub><sec att="etc">Container</sec></root>', '/root/sub/attribute::att', 'att="something"')

Error: User Rate Limit Exceeded

<root><sub att="something" xatt="bar">Content Text</sub><sec att="etc">Container</sec></root>

Error: User Rate Limit Exceeded

Решение Вопроса

Error: User Rate Limit ExceededUpdateXMLError: User Rate Limit Exceeded

Error: User Rate Limit ExceededExtractValue:

UPDATE biblioitems
SET    marcxml = UpdateXML(marcxml,
         'datafield[@tag="520"]',
         CONCAT(
           '<datafield tag="520" ind1="a" ind2="',
              ExtractValue(marcxml, 'datafield[@tag="520"]/attribute::ind2'),
           '">',
           '  <subfield code="a">',
             ExtractValue(marcxml, 'datafield[@tag="520"]/subfield'),
           '  </subfield>',
           '</datafield>'
         )
       )
WHERE  biblionumber = 220405;

Error: User Rate Limit ExceededError: User Rate Limit Exceeded.

Ваш ответ на вопрос