<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iww</author_name>
  <author_url>https://blog.hatena.ne.jp/iww/</author_url>
  <blog_title>揮発性のメモ２</blog_title>
  <blog_url>https://iww.hateblo.jp/</blog_url>
  <categories>
    <anon>MySQL</anon>
  </categories>
  <description>ロックしてインクリメントして値取得してアンロック、とかやらなくてもいい方法 mysql&gt; select * from TEST_SEQ; +-----+-----+ | IND | VAL | +-----+-----+ | A | 3 | | B | 99 | | C | 4 | +-----+-----+ たとえば、Bという変数をインクリメントしてから値取得する MySQL :: MySQL 5.6 リファレンスマニュアル :: 12.14 情報関数 mysql&gt; update TEST_SEQ set VAL=last_insert_id(VAL+1) where IND='B'; Qu…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F20140618%2Flast_insert_id&quot; title=&quot; カウンターテーブルを使って 変数ごとに採番する - 揮発性のメモ２&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-06-18 00:00:00</published>
  <title> カウンターテーブルを使って 変数ごとに採番する</title>
  <type>rich</type>
  <url>https://iww.hateblo.jp/entry/20140618/last_insert_id</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
