Kotlinã§Webã¢ããªã±ã¼ã·ã§ã³ãä½ãã«ããããSQLãç´æ¥è¨è¿°ã§ããã¿ã¤ãã®O/Rãããã¼ï¼æ¬ç¨¿ã§ã¯SQLãããã¼ã¨å¼ã³ã¾ãï¼ãæ¢ãæ±ãã¾ããã SQLãããã¼ã«æ±ããæ©è½ SQLãããã¼ã«æ±ããæ©è½ã¯Bindã¨Mapã§ãããã®è¨äºã§ã¯Bindã¨Mapã次ã®ããã«å®ç¾©ãã¾ãã Bind SQLã«åãè¾¼ãã ãã¬ã¼ã¹ãã«ãã¼ï¼ååä»ããæã¾ããï¼ã«å¯¾å¿ãããã©ã¡ã¼ã¿ã¼ç¾¤ã渡ãæ©è½ã ä¾: SELECT ... WHERE price BETWEEN :minPrice AND :maxPrice ã®ãããªSQLã«ãminPriceã¨maxPriceããããã£ãæã¤ãªãã¸ã§ã¯ãã渡ãã Map å®è¡çµæã¨ãã¦å¾ãããè¡ããªãã¸ã§ã¯ãã«ãããã³ã°ããæ©è½ã ä¾: SELECT id, name, price FROM ... ã®ãããªSQLã®å®è¡çµæããid, name, price ã®ãã
{{#tags}}- {{label}}
{{/tags}}