"programlisting">dbsql&gt; begin;
dbsql&gt; insert into a values (2); </pre>
        <p>
                The second session blocks until the first session commits
                the transaction. Again, this is because both sessions are
                operating on the same database page(s). However, if you
                simultaneously attempt to write pages in reverse order, you
                can deadlock. For example:
            </p>
        <p>
                <span class="bold"><strong>Session 1:</