{"provider_name":"Hatena Blog","description":"\u554f\u984c Go\u8a00\u8a9e\u3067MySQL\u3092\u4f7f\u3046\u6848\u4ef6\u304c\u3042\u3063\u305f\u306e\u3067\u3001Go\u306b\u6a19\u6e96\u306edatabase/sql\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3046\uff08\u3042\u3068github.com/go-sql-driver/mysql\u30d1\u30c3\u30b1\u30fc\u30b8\u3082\uff09\u3002\u554f\u984c\u306fdatabase/sql\u30d1\u30c3\u30b1\u30fc\u30b8\u306e*sql.DB\u304c\u6301\u3063\u3066\u308bQuery\u30e1\u30bd\u30c3\u30c9\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u5b9f\u88c5\u3057\u3066\u3044\u308bplaceholder\u6a5f\u80fd\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4f7f\u304a\u3046\u3068\u3057\u305f db, _ := sql.Open(\"mysql\", \"myuser:mypass@tcp(localhost:3306)/mydb\") rows, e := db.Query(\"SELECT * FROM ? WHERE age < ?\",\"user\u2026","author_url":"https://blog.hatena.ne.jp/otiai10/","height":"190","image_url":"http://cdn-ak.f.st-hatena.com/images/fotolife/o/otiai10/20130810/20130810204714.jpg","version":"1.0","blog_title":"DRY\u306a\u5099\u5fd8\u9332","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fotiai10.hatenablog.com%2Fentry%2F2014%2F05%2F31%2F021925\" title=\"Go\u8a00\u8a9e`database/sql`\u30d1\u30c3\u30b1\u30fc\u30b8\u306eplaceholder\u304c\u52b9\u304b\u306a\u3044\u3010\u5c0f\u5b66\u751f\u306f\u6700\u9ad8\u3060\u305c\u3011 - DRY\u306a\u5099\u5fd8\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://otiai10.hatenablog.com/entry/2014/05/31/021925","published":"2014-05-31 02:19:25","blog_url":"https://otiai10.hatenablog.com/","type":"rich","provider_url":"https://hatena.blog","title":"Go\u8a00\u8a9e`database/sql`\u30d1\u30c3\u30b1\u30fc\u30b8\u306eplaceholder\u304c\u52b9\u304b\u306a\u3044\u3010\u5c0f\u5b66\u751f\u306f\u6700\u9ad8\u3060\u305c\u3011","categories":["go","mysql"],"width":"100%","author_name":"otiai10"}