{"blog_url":"https://htn20190109.hatenablog.com/","provider_name":"Hatena Blog","url":"https://htn20190109.hatenablog.com/entry/2021/04/18/170332","author_url":"https://blog.hatena.ne.jp/HTN20190109/","author_name":"HTN20190109","width":"100%","blog_title":"HTN20190109\u306e\u65e5\u8a18","categories":["DB"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhtn20190109.hatenablog.com%2Fentry%2F2021%2F04%2F18%2F170332\" title=\"select\u7d50\u679c\u3092\u30bb\u30c3\u30b7\u30e7\u30f3\u5909\u6570\u306b\u683c\u7d0d - HTN20190109\u306e\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>","height":"190","description":"MySQL (8.0.22) https://www.wakuwakubank.com/posts/493-mysql-user-var/ set @val := (select col1 from tab1);\u53c8\u306fselect @val := col1 from tab1; select @val; \u203b\u30c7\u30fc\u30bf\u304c2\u4ef6\u4ee5\u4e0a\u306e\u5834\u5408\u306f\u4e0b\u8a18\u30a8\u30e9\u30fc\u3068\u306a\u308bERROR 1242 (21000): Subquery returns more than 1 row Oracle (19c) column col1 new_value valselect col1 from tab1; select &val f\u2026","version":"1.0","title":"select\u7d50\u679c\u3092\u30bb\u30c3\u30b7\u30e7\u30f3\u5909\u6570\u306b\u683c\u7d0d","type":"rich","image_url":null,"published":"2021-04-18 17:03:32","provider_url":"https://hatena.blog"}