<?xml version="1.0" encoding="UTF-8"?>
<article>
  <body>&lt;http://livedocs.adobe.com/air/1/devappshtml/help.html?content=SQL_20.html#1085042&gt;

&#33258;&#20998;&#29992;&#12391;&#35379;&#12375;&#12390;&#12415;&#12383;&#12398;&#12391;&#12377;&#12364;&#12289;&#12424;&#12367;&#30693;&#12425;&#12428;&#12383;&#12503;&#12521;&#12463;&#12486;&#12451;&#12473;&#12364;&#22810;&#12363;&#12387;&#12383;&#12424;&#12358;&#12395;&#24605;&#12356;&#12414;&#12377;&#12290;

* **Pre-create database connection**  
&#12450;&#12503;&#12522;&#31435;&#12385;&#19978;&#12370;&#26178;&#12395; open()/openAsync()&#12375;&#12390;&#12362;&#12367;

* **Reuse database connection**  
&#20316;&#25104;&#12375;&#12383;connection&#12399;&#12450;&#12503;&#12522;&#20840;&#20307;&#12391;&#20351;&#12356;&#12414;&#12431;&#12377;

* **Favor asynchronous execution mode**  
&#21516;&#26399;&#12392;&#38750;&#21516;&#26399;&#12434;&#12358;&#12414;&#12367;&#20351;&#12356;&#12371;&#12394;&#12381;&#12358;&#12290;&#12487;&#12540;&#12479;&#12434;1&#34892;&#36861;&#21152;&#12377;&#12427;&#12424;&#12358;&#12394;INSERT&#12399;synchronous&#12391;&#12420;&#12428;&#12400;&#12356;&#12356;&#12364;(&#12411;&#12392;&#12435;&#12393;&#26178;&#38291;&#12364;&#12363;&#12363;&#12425;&#12394;&#12356;&#12398;&#12391;)&#12289;&#35079;&#38609;&#12394;SELECT&#12398;&#22580;&#21512;asynchronous&#12398;&#12411;&#12358;&#12364;&#12356;&#12356;&#12363;&#12418;&#12375;&#12428;&#12394;&#12356;(&#12391;&#12394;&#12356;&#12392;&#12518;&#12540;&#12470;&#12399;&#12524;&#12473;&#12509;&#12531;&#12473;&#12364;&#24112;&#12427;&#12414;&#12391;&#12518;&#12540;&#12470;&#12399;&#12394;&#12395;&#12418;&#12391;&#12365;&#12394;&#12356;)&#12290;

* **Use separate SQL statements and don't change the SQLStatement's text property.**  
4&#12388;&#12398;SQL&#20966;&#29702;&#12364;&#12354;&#12387;&#12383;&#12425;&#12289;4&#12388;&#12398;SQLStatement&#12434;&#20316;&#12429;&#12358;&#12290;

* **Use statement parameters**  
Statement&#25991;&#23383;&#21015;&#12395;&#20837;&#21147;&#12487;&#12540;&#12479;&#12434;&#20837;&#12428;&#12394;&#12356;&#12391;&#12289;&#24517;&#12378;&#12497;&#12521;&#12513;&#12540;&#12479;&#12434;&#20351;&#12387;&#12390;&#12377;&#12427;&#12371;&#12392;&#12290;

* **Use constants for column and paramter names**  
&#12473;&#12506;&#12523;&#12456;&#12521;&#12540;&#12434;&#38450;&#12368;&#12383;&#12417;&#12289;&#12459;&#12521;&#12512;&#21517;&#12434;&#25345;&#12388;&#25991;&#23383;&#21015;&#23450;&#25968;&#12434;&#20316;&#25104;&#12377;&#12427;&#12290;&#12497;&#12521;&#12513;&#12540;&#12479;&#21517;&#12434;&#25345;&#12388;&#21516;&#27096;&#12398;&#12418;&#12398;&#12418;&#20316;&#12387;&#12390;&#12418;&#12424;&#12356;&#12290;


</body>
  <cached-tag-list>AIR</cached-tag-list>
  <comments-count type="integer">0</comments-count>
  <created-at type="datetime">2008-04-07T00:12:35+00:00</created-at>
  <daily-archive-id type="integer">535</daily-archive-id>
  <filter-type>blue_stole</filter-type>
  <id type="integer">509</id>
  <monthly-archive-id type="integer">54</monthly-archive-id>
  <pdf-digest nil="true"></pdf-digest>
  <permalink>/articles/509</permalink>
  <published-at type="datetime">2008-04-07T00:12:44+00:00</published-at>
  <secret>65a2bd42-5df3-4e7a-b8a0-5014ab685608</secret>
  <title>AIR&#12391;&#12398;&#12525;&#12540;&#12459;&#12523;DB&#12398;&#12505;&#12473;&#12488;&#12503;&#12521;&#12463;&#12486;&#12451;&#12473;(&#35379;)</title>
  <updated-at type="datetime">2008-04-07T00:12:44+00:00</updated-at>
  <user-id type="integer">3</user-id>
</article>
