{"blog_title":"\u3044\u308d\u3044\u308d\u5099\u5fd8\u9332\u65e5\u8a18","blog_url":"https://devlights.hatenablog.com/","image_url":null,"provider_name":"Hatena Blog","author_name":"gsf_zero1","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdevlights.hatenablog.com%2Fentry%2F20050327%2F1150863857\" title=\" Groovy\u3067SQL-0001 - \u3044\u308d\u3044\u308d\u5099\u5fd8\u9332\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2005-03-27 13:24:17","height":"190","url":"https://devlights.hatenablog.com/entry/20050327/1150863857","provider_url":"https://hatena.blog","width":"100%","categories":["java"],"author_url":"https://blog.hatena.ne.jp/gsf_zero1/","title":" Groovy\u3067SQL-0001","version":"1.0","description":"Groovy\u3092\u4f7f\u7528\u3059\u308b\u3068\u901a\u5e38\u306eJava\u3067JDBC API\u3092\u4f7f\u7528\u3057\u305f\u5834\u5408 \u306b\u6bd4\u3079\u3066\u3001\u51e6\u7406\u304c\u5927\u5206\u697d\u306b\u304b\u3051\u307e\u3059\u3002\u7279\u306bRuby\u3092\u3084\u3063\u3066\u3044\u308b \u4eba\u306b\u3068\u3063\u3066\u306f\u99b4\u67d3\u307f\u3084\u3059\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u3061\u3087\u3053\u3063\u3068\u3057\u305f \u30c4\u30fc\u30eb\u4f5c\u6210\u3059\u308b\u969b\u306a\u3069\u306b\u5a01\u529b\u3092\u767a\u63ee\u3057\u307e\u3059\u3002(1) \u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u751f\u6210 import groovy.sql.Sql sql = Sql.newInstance(\"JDBC URL\", \"\u30e6\u30fc\u30b6\uff29\uff24\", \"\u30d1\u30b9\u30ef\u30fc\u30c9\", \"JDBC\u30c9\u30e9\u30a4\u30d0\u30fc\") (2) \u30c7\u30fc\u30bf\u53d6\u5f97(SELECT) Sql\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u65e2\u306b\u751f\u6210\u6e08\u307f\u3060\u3068\u3057\u307e\u3059\u3002\u30c6\u30b9\u30c8\u306b\u4f7f\u7528\u3059\u308b\u30c6\u30fc\u30d6\u30eb\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3082\u306e\u3068\u3057\u307e\u3059\u3002 create table HOGE_TBL\u2026","type":"rich"}