my @a = qw(foo bar baz); ãããªé åãã ?,?,? ã¨ããæååã使ãããå ´åãããã¾ãã ä¾ãã°ã SELECT * FROM hoge WHERE user_id IN (?,?,?); ã¿ãã㪠SQL ã«ããå ´åã®ãã¬ã¼ã¹ãã«ããä½ãã¨è¨ã£ãå ·åã«ã 社å IRC ã§ãclouder ãããè¨ãåºãã¦ã 18:27 <clouder>join(',', map('?', @a)) 18:27 <clouder> ãããªã®ããæãã¤ããªããã ã¨è¨ãã ã¾ããããã妥å½ã¨ããããæ®éãããæãæµ®ãã¶ããªã¼ã£ã¦æã£ã¦ãããä¼ç¤¾ã® dos ããã¨ãã人ã 19:15 <dos> '?,' x @a; 㧠s/,$//; ã¨ããソï¾ï½ï½°ï½¼ï½®ï¾ ã¨ããç°æ§ãªãã¨ãè¨ãåºããã sub placeholder_from_array { return join(',',
About Me skating software engineer / search engine developer butcherãã¨mogwaingã§ããè²ããªIDãå¢ãããã¦å°ã£ã¦ã¾ãã skateboardã¨æ¤ç´¢ã¨ã³ã¸ã³ã¨OSã¨é³æ¥½ã¨ã¢ã«ã´ãªãºã ã¨ãããã¹&ãµã«ãµã好ãã§ãã ãã ããã¨ã»ããªãå«ãã§ãã ã©ã¤ãã¯ã¼ã¯ã¨ãã¦å ¨ææ¤ç´¢ã¨ã³ã¸ã³Luxãéçºãã¦ãã¾ã ã¾ããèå³ãªã©ãã調ã¹ããã°ãã¡ãã£ã¨ä½è£æ´ããtutorialogãå ¬éãã¦ã¾ãã Twitter: http://twitter.com/mogwaing åã®ããã°: http://cheesy.dip.jp/blog/butcher/
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}