å£ç¯ãå¤ãã£ã¦ãæ©é風éªãã²ãã¦ãã¾ãã ãã¦ãããç§ãéãè¶ãã¦å¬ã®æ§ç¸ãåãã¦ããæ¨ä»ã§ã¯ããã¾ãããDBI ã§ã¯ãæ®éã¯ãã¬ã¼ã¹ãã«ãã使ã my $stmt = 'SELECT * FROM user WHERE user_id = ?'; my @bind = ($user_id); $dbh->do($stmt, undef, @bind); ã¨ãæ¸ãã¨æãã¾ãã ãã®ã¨ãã«ãå®éã«ãã¤ã³ããããå¾ã® SQL ãã¿ãããªã¼ã£ã¦è¡åã«é§ãããã¨æãã¾ãã*1ãã©ãé å¼µã£ã¦ããã¥ã¡ã³ããèªãã§ããããã¾ãããã ããããã¨ãã¯ä»æ¹ãªãã®ã§ã$stmt 㨠@bind ã両æ¹ãã°ã«åºãã¦ãè¶ãæ¿ãã¦ãã¾ããã $self->log->_dump($stmt, @bind); # => SELECT * FROM user WHERE user_id = ?, [1234] ã§ãããã£
{{#tags}}- {{label}}
{{/tags}}