以ä¸ã®æç« ã¯ãMartin Fowler ã«ãã Domain Logic and SQL ã®æ¥æ¬èªè¨³ã§ããã ãã¼ã¿ãã¼ã¹æåã½ããã¦ã§ã¢éçºè ã¨ã¡ã¢ãªä¸(in-memory)ã¢ããªã±ã¼ã·ã§ã³ã½ããã¦ã§ã¢éçºè ã¨ã®éã®ã®ã£ããã¯ãããæ°åå¹´ãå¾ã ã«åºãã£ã¦ãã¦ããããã®ã®ã£ãããåå ã§ããã¼ã¿ãã¼ã¹ã®æ©è½(SQLãã¹ãã¢ãããã·ã¼ã¸ã£)ãã©ã®ããã«æ±ãã°ããã®ãã¨ããè°è«ãæ°å¤ãå·»ãèµ·ãã£ã¦ãããããã§ã¯ããã¸ãã¹ãã¸ãã¯ã SQL ã«ç½®ãã¹ãããããã¨ãã¡ã¢ãªä¸ã®ã³ã¼ãã«ç½®ãã¹ããã¨ãã£ãåé¡ã«ã¤ãã¦ã主ã«ããã©ã¼ãã³ã¹ã¨æ´æ°æ§ã®è¦³ç¹ããèå¯ãè¡ããèå¯ã«ã¯ç°¡åãªä¾ã使ãããSQL ã¯ã¨ãªã¯ãã£ããã¨ãããã®ï¼rich SQL queriesï¼ãç¨ããã®ã§æªããããã ã¨ã³ã¿ã¼ãã©ã¤ãºã¢ããªã±ã¼ã·ã§ã³ï¼è¨³æ³¨ï¼ä»¥ä¸ãEAï¼æ§ç¯ã«é¢ããæ¬ï¼ç§ã®è¿èãP of EAAããªã©ï¼ãèªãã¨ããã¸ã
312 ï¼1/3ï¼05/03/12 03:17:26 ID:??? çªç¶ã§ããï¼é¢ç½ã SQL ãæãã¤ããã®ã§ï¼ãæè¦ãé ãããã§ãï¼èå³ãæãããæ¹ã¯ä½¿ã£ã¦ã¿ã¦ãã ã¡ãã ä¸è¬çã«ï¼SQL ã®çºè¡ã¯ï¼ããªãã¢ãã¹ãã¼ãã¡ã³ãã使ãæ¹ãããã¨ããã¦ããï¼ãã®çç±ã¯ï¼ DBMS ã®ãã£ãã·ã¥ãè¯ãå¹ãï¼ SQL ã¤ã³ã¸ã§ã¯ã·ã§ã³çã®å±éºãé¿ããããï¼çï¼ ãããï¼webã¢ããªã®æ¤ç´¢ãã©ã¼ã ãªã©ã§ã¯ï¼ããªãã¢ãã¹ãã¼ãã¡ã³ãã¯ä½¿ããªãå ´åãå¤ãã£ãï¼æ¤ç´¢æ¡ä»¶é ç®ãè¤æ°åå¨ãã¦ãã¦ï¼ãããã®é ç®ãå¿ é ã§ç¡ãå ´åï¼é ç®ãå ¥åããã¦ãããã©ããããã§ãã¯ãï¼ããã«åããã¦SQL æã® WHERE å¥ã®å 容ããã®ãã®ããªããã°ãªããªãããã ï¼ SQLæãã®ãã®ãï¼ããã¦ããã«ã»ããããå¼æ°ã®åæ°ãå¯å¤ãªã®ã§ï¼ããªãã¢ãã¹ãã¼ãã¡ã³ãã使ãã®ã¯ç¡çã ã£ãã®ã§ããï¼ ä»åæãã¤ããã®ã¯ï¼ãã®ãããªæ¡ä»¶ã§
ãã¼ãã«ã®JOINãè¦æã§ãããããã®ä¾ãæãã¤ãã¦ããã¯ããã£ãããã£ããç解ã§ããããã«ãªãã¾ããããããé ããé¢ãã¾ããâ¦â¦ã â» INNERãOUTERã¯é£¾ããçç¥ã§ããã INNER JOIN â JOIN LEFT OUTER JOIN â LEFT JOIN RIGHT OUTER JOIN â RIGHT JOIN â» ON ...=... ãã¾ã¨ã㦠USING(å±æ§) ã¨æ¸ããã â» ä½ã§çµåãããè¨ãã¾ã§ããªãæã¯ãNATURALãæå®ããã¨åæã«JOINãã¦ããããNATURALã«JOINãã¦â¦â¦ã â» WHEREã¯çµåããçµæã«ä½ç¨ããã â» ç¾å®ã«ã¯ä¸å³ã®ããã«1対1ã§çµåãã¾ããã â» ãã¾ããCROSS JOINã ãããªã®ä½¿ãã¾ããã ãã¯ãç¨ç»åã
The addslashes() Versus mysql_real_escape_string() Debate (Chris Shiflett: The PHP Blog) ã§æåã³ã¼ãã«ãã£ã¦ã¯ addslashes() ã«ãã SQL ã®ã¨ã¹ã±ã¼ãå¦çã¯åé¡ããããã¨ãææããã¦ãã¾ããã æ¥æ¬èªã§ããShift_JIS ãæ±ã£ã¦ããå ´åã¯åæ§ã®åé¡ãèµ·ããå¯è½æ§ãããããã«æããã¾ããã®ã§ãã¡ã¢ãã¦ããã¾ããä½ãééããåéããªã©ãããã¾ãããææãã¦ãã ããããããããPHP ã ãã®åé¡ã§ã¯ãªãã¨æãã¾ãã æ¥æ¬èªã§ãæåã³ã¼ãã Shift_JIS ã®å ´åãaddslashes() ã«ããã¨ã¹ã±ã¼ãå¦çã§ã¯ SQL ã¤ã³ã¸ã§ã¯ã·ã§ã³ãå¯è½ã«ãªã£ã¦ãã¾ãã±ã¼ã¹ãããã¾ãã ä¾ãã°ãä¸è¨ã®ãã¼ã¸ã®ä¾ãå°ãå¤æ´ããã¨ä»¥ä¸ã®ããã«ãªãã¾ãã <?php // ä¾: æåã³ã¼ãã Sh
<?php $a = array("a" => "apple", "b" => "banana"); $b = array("a" => "pear", "b" => "strawberry", "c" => "cherry"); $c = $a + $b; // Union of $a and $b echo "Union of \$a and \$b: \n"; var_dump($c); $c = $b + $a; // Union of $b and $a echo "Union of \$b and \$a: \n"; var_dump($c); $a += $b; // Union of $a += $b is $a and $b echo "Union of \$a += \$b: \n"; var_dump($a); ?> Union of $a and $b: array
The Yahoo! Query Language lets you query, filter, and join data across any web data source or service on the web. Using our YQL web service, apps run faster with fewer lines of code and a smaller network footprint. YQL uses a SQL-like language because it is a familiar and intuitive method for developers to access data. YQL treats the entire web as a source of table data, enabling developers to sel
ãªã¼ãã³ã½ã¼ã¹ãã¼ã¿ãã¼ã¹ãå éããããã ã©ãã¼ãã¼ãã®ããã°ã§ããã«ã¬ã¼æ¥è¨ãå ¼ãã¦ã¾ãããªãèè ã¯2010-06-01ããæ¥æ¬ãªã©ã¯ã«ã«å¨ç±ãã¦ãã¾ãããæ¬ãµã¤ãï¼ããã°ãã¾ãã¯ã¦ã§ããµã¤ãï¼ã«ããã¦ç¤ºããã¦ããè¦è§£ã¯ãç§èªèº«ã®è¦è§£ã§ãã£ã¦ããªã©ã¯ã«ã®è¦è§£ãå¿ ãããåæ ãããã®ã§ã¯ããã¾ããã ãæåæ¸ããã¿ã§ãã(1-1: CASEå¼ã®ã¹ã¹ã¡) Webã§ã¯ã以ä¸ã§åç §ã§ãã¾ãã CASEå¼ã®ã¹ã¹ã¡: 3ï¼CHECKå¶ç´ã§äºã¤ã®åã®æ¡ä»¶é¢ä¿ãå®ç¾©ãã(ãªã¬ã¼ã·ã§ãã«ã»ãã¼ã¿ãã¼ã¹ã®ä¸ç) CASEå¼ã¯CHECKå¶ç´ã«ä½¿ãããã¨ãã話ãããã®ã§ãããMySQLã¯CHECKå¶ç´ããµãã¼ãããã¦ãã¾ãããä»DBããã®ç§»æ¤ã«ä¾¿å©ãªããã«ãã¨ã©ã¼ã¯ã§ã¾ããããå®éã«ã¯å®ç¾©ããããç¡è¦ããã¾ãã mysql> CREATE TABLE Personnel( -> name varchar(20),
ãµã¼ãã¹çµäºã®ãç¥ãã ãã¤ãYahoo! JAPANã®ãµã¼ãã¹ããå©ç¨ããã ãèª ã«ãããã¨ããããã¾ãã ã客æ§ãã¢ã¯ã»ã¹ããããµã¼ãã¹ã¯æ¬æ¥ã¾ã§ã«ãµã¼ãã¹ãçµäºãããã¾ããã ä»å¾ã¨ãYahoo! JAPANã®ãµã¼ãã¹ããæ顧ãã ããã¾ãããããããããé¡ããããã¾ãã
ã¯ããã«ãSQLã使ã£ã¦æ°ç¬ï¼ãã³ãã¬ï¼ã解ãæ¹æ³ãç´¹ä»ãã¾ããããã¼ã¿ãã¼ã¹ãæä½ããããã®è¨èªã§ããSQLãå¥ã®ç¨éã«ä½¿ããã¨ããçç±ã¯ãSQLã宣è¨çãªè¨è¿°ãå¯è½ãªè¨èªã®ä¸ã§æãæ®åãã¦ããã¨æãããããã§ãï¼å®£è¨çè¨èªã¨è¨ãã°Prologãæãæµ®ãã¹ãæ¹ãå¤ãããããã¾ããããæ®å¿µãªãã¨ã«Prologã¯ãSQLã»ã©ã«ã¯æ®åãã¦ãã¾ããï¼ããã¾ãã宣è¨çãªè¨è¿°ã«ã¤ãã¦èª¬æãã¾ããããã¿ã¯ã·ã¼ã«ä¹ããã¨ãæ³åãã¦ãã ããããæ¸è°·ã«è¡ã£ã¦ãã ãããã¨ããããã«ã欲ããçµæãæ¸ãã®ã宣è¨çãªè¨è¿°ã§ããå ·ä½çãªéçã¯é転æãèãã¦ããã¾ããããã«å¯¾ãã¦ãã¾ãAéããåã«è¡ã£ã¦ãB交差ç¹ãå·¦æãã¦ã»ã»ã»ãã¨ããããã«ãå ·ä½çãªéçã示ãã®ã¯æç¶ãçè¨è¿°ã§ããããã°ã©ãã³ã°è¨èªã®å ´åãåæ§ã§ããSQLãPrologã«ããã¦ã¯ã欲ããçµæãããã°ã©ããæ¸ãã°ãå ·ä½çãªå®ç¾æ¹æ³ã¯ã³ã³ãã¥ã¼ã¿ãèãã¦
GUIã«ããSQLæã®ä½æãªã©ããã¾ãã¾ãªéçºæ¯æ´æ©è½ãåããSQLéçºç°å¢ãé»ç« SQL Studioãv1.1.7.413ã6æ4æ¥ã«å ¬éããããWindows 2000/XPã«å¯¾å¿ãã¦ãããå人使ç¨ã»æ¥åã«ãããããããªã¼ã½ããã¨ãã¦å©ç¨å¯è½ãç¾å¨ä½è ã®ãã¼ã ãã¼ã¸ãããã¦ã³ãã¼ãã§ããã ãé»ç« SQL Studioãã¯ãSQLæã®ä½æããã¹ããè¡ããæ±ç¨ã®ãã¼ã¿ãã¼ã¹éçºç°å¢ãæ¬ã½ããä¸ããOLE DBæ¥ç¶ã¾ãã¯ODBCãã©ã¤ãã«å¯¾å¿ããå種ãã¼ã¿ãã¼ã¹ã¸ç´æ¥æ¥ç¶å¯è½ã§ãä½æããSQLæãå®éã«ãã¹ãå®è¡ã§ãããç»é¢ã¯3ãã¤ã³æ§æã§ãå·¦å´ã«ã¯è¤æ°ã®SQLã½ã¼ã¹ãã¡ã¤ã«ã管çã§ãããã¡ã¤ã©ã¼ãä¸å¤®ã«ã¯è¤æ°ãã¡ã¤ã«ãã¿ãã§åãæ¿ãã¦è¡¨ç¤ºã§ããã¨ãã£ã¿ã¼ãå³å´ã«ã¯æ¥ç¶ãããã¼ã¿ãã¼ã¹ã®æ§é ãããªã¼ã¨ãªã¹ãã§è¡¨ç¤ºããâãã¼ã¿ãã¼ã¹ã¨ã¯ã¹ããã¼ã©âã表示ãããã SQLæã®ä½ææã¯ããã¾ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}