æ£è¦è¡¨ç¾ã§ãã ^a_c.* ã¿ãããªã®ãã²ã£ããããã¨æã£ã¦ï¼ my ($sql, @binds) = SQL::Abstract->new()->select( # table 'foo', # fields [ '*' ], # where { id => { LIKE => 'a_c%' }, }, ); ã¿ããããã¨ï¼a_code ã ãã§ãªã abc ãããããã¦ãã¾ãç½ ã PostgreSQL ã ã¨ï¼ããã©ã«ãã§ã¨ã¹ã±ã¼ãæåã \ ã«ãªã£ã¦ãã®ã§ï¼ # where { id => { LIKE => 'a\\_c%' }, }, ã®ããã«ã¨ã¹ã±ã¼ãããã°ããï¼MySQL ã ã¨ã©ããªãã ãï¼ã ã§ãï¼ãã¨ãã° SQLite ã¯ããã©ã«ãã§ã¨ã¹ã±ã¼ãæåãè¨å®ããã¦ãªããã ãã LIKE ãªã©ã®ãã¨ã« ESCAPE ãæå®ããã®ãæ¬çããªãã ãã©ï¼SQL::Abstract ã§ãµ
{{#tags}}- {{label}}
{{/tags}}