¸µ¡¹¤Î¥½¡¼¥¹¤Ç¤Ï¡¢data_baceX ¤Ï¥½¡¼¥¹Ãæ¤Î¤É¤³¤Ë¤âÀ¸À®¤Îµ½Ò¤¬¤Ê¤¤¤Î¤Ç¡¢
¥µ¥Ö¥¯¥¨¥ê¤Î¤Ä¤â¤ê¤Çµ½Ò¤·¤¿¤Î¤À¤í¤¦¤«¤È¹Í¤¨¤Þ¤·¤¿¤¬¤½¤¦¤Ç¤â¤Ê¤µ¤½¤¦¤À¤È¡£
¤Ç¤¹¤Î¤Ç¡¢½ã¿è¤ËSQL¹½Ê¸¤ÎÊÙ¶¯ÉÔ¤À¤ÈȽÃǤ·¡¢Â縵¤Î¼ÁÌäʸ¤Î
¡¡data_bace¤È¤¦¤¤¥Æ¡¼¥Ö¥ë¤ËID,B,C¤È¤¤¤¦¥«¥é¥à¤¬¤¢¤ê¤Þ¤¹¡£
¡¡¤½¤³¤«¤éÊÑ¿ôA¤ËºÇ¤â¶á¤¤¿ô[¥«¥é¥àB]¤ÎÃͤȤ½¤ì¤Î[¥«¥é¥àC]¤ÎÃͤòÃê½Ð¤·¡ÖB= / C= ¡×
¡¡¤Î¤è¤¦¤Ê´¶¤¸¤Çɽ¼¨¤·¤¿¤¤¡£
¤Ë¹Ê¤Ã¤Æ²ò¼á¤·¤Þ¤·¤¿¡£
ORDER BY¶ç¤Î¹½Ê¸¤Ë¤Ä¤¤¤Æ¤Ç¤¹¤¬¡¢¤Á¤ç¤Ã¤Èµ¤¤Ë¤Ê¤Ã¤¿¤Î¤Ç¡£
°Ê²¼¤Î¡¢¤ÎSQLʸ¤Ï¡¢Æ°ºî¤¬°Û¤Ê¤ê¤Þ¤¹¡£
¡¡¡¡¡SELECT * FROM temp ORDER BY 3
¡¡¢¡¡SELECT * FROM temp ORDER BY 6-3
Àè¤Ë¾Ò²ð¤·¤¿SQLite¤Î²òÀâ¥Ú¡¼¥¸¤Ë¤â¤¢¤ê¤Þ¤¹¤¬¡¢ORDER BY¶ç¤Î»ØÄ꤬Äê¿ô¤Î¾ì¹ç¤Ï¡¢
¥«¥é¥à¤Î½çÈ֤˽¾¤¤»ØÄꤵ¤ì¤¿¥«¥é¥à¤ò´ð½à¤Ë¥½¡¼¥È¡£¾å¤ÎÎã¤À¤È¡¢temp¥Æ¡¼¥Ö¥ëÃæ¤Î
£³ÈÖÌܤΥ«¥é¥à¤ò´ð½à¤Ë¥½¡¼¥È¤·¤Þ¤¹¡£
¼°¤Î¾ì¹ç¤Ï¡¢¤½¤ì¤ò²ò¼á¤·¤¿¿·¥«¥é¥à¤ò´ð½à¤Ë¥½¡¼¥È¤·¤Þ¤¹¡£AS¶ç¤Ç¥¨¥¤¥ê¥¢¥¹¤ò
¤Ä¤±¤Ê¤¤¾ì¹ç¤Ï¡¢¼°¤½¤Î¤â¤Î¤¬¥«¥é¥à̾¤À¤È²ò¼á¤µ¤ì¤Þ¤¹¡£
¤¿¤À¤·¾å¤ÎÎã¤À¤È¡¢¡Ö6-3¡×¤È¤¤¤¦¥«¥é¥à¤¬ºî¤é¤ì¤Þ¤¹¤¬·×»»·ë²Ì¤Ï¾ï¤Ë£³¤Ç¤¹¤«¤é
Á´¤Æ¤Î¹Ô¤Îɾ²Á¤¬£³¤Ë¤Ê¤ë¤À¤±¡¢¼ÂºÝ¤Ë¤Ïtemp¥Æ¡¼¥Ö¥ë¤Ëinsert¤·¤¿½ç¤½¤Î¤Þ¤Þ¤¬
½ÐÎϤµ¤ì¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£
¤³¤Î¼°¤Ë¡¢¹Ô¤´¤È¤ËÃͤ¬°Û¤Ê¤ë¾õÂ֤Υ«¥é¥à̾¤ò²Ã¤¨¤ë¤³¤È¤Ç¡¢³Æ¹Ô¤Î·ë²Ì¤¬ÊѲ½¤·¡¢
¤½¤ì¤ò¸µ¤Ë¥½¡¼¥È¤¬¹Ô¤ï¤ì¤ë¤È¤¤¤¦¤ï¤±¤Ç¤¹¡£
¤¯¤É¤¯¤Ê¤ê¤Þ¤¹¤Î¤Ç¡¢¤ï¤¿¤·¤â¤³¤³¤Þ¤Ç¡£