{"id":223,"date":"2023-12-01T16:07:27","date_gmt":"2023-12-01T08:07:27","guid":{"rendered":"https:\/\/www.coffecat.cn\/?p=223"},"modified":"2024-08-27T12:38:38","modified_gmt":"2024-08-27T04:38:38","slug":"mybatis%e6%89%b9%e9%87%8f%e6%8f%92%e5%85%a5%e6%8a%a5%e9%94%99ora-01461-can-bind-a-long-value-only-for-insert-into-a-long-column","status":"publish","type":"post","link":"https:\/\/www.coffecat.cn\/index.php\/2023\/12\/01\/mybatis%e6%89%b9%e9%87%8f%e6%8f%92%e5%85%a5%e6%8a%a5%e9%94%99ora-01461-can-bind-a-long-value-only-for-insert-into-a-long-column\/","title":{"rendered":"mybatis\u6279\u91cf\u63d2\u5165\u62a5\u9519ORA-01461: can bind a LONG value only for insert into a LONG column"},"content":{"rendered":"\n<p>\u95ee\u9898\uff1a\u5728\u505a\u6279\u91cf\u65b0\u589e\u65f6\u5176\u4e2d\u6709\u4e00\u4e2a\u5b57\u6bb5\u9700\u8981\u5c06\u5bf9\u8c61\u96c6\u5408\u8f6c\u6362\u6210json\u5b57\u7b26\u4e32\u8fdb\u884c\u5b58\u50a8\uff0c\u6570\u636e\u5e93\u4f7f\u7528\u7684\u65f6Oracle\uff0c\u8fd9\u4e2a\u5b57\u6bb5\u4f7f\u7528\u7684\u662fCLOB\u7c7b\u578b\uff0c\u4e4b\u524d\u6ca1\u6709\u53d1\u73b0\u6709\u4ec0\u4e48\u95ee\u9898\uff0c\u540e\u6765\u4e1a\u52a1\u5728\u8c03\u7528\u8fd9\u4e2a\u5730\u65b9\u7684\u529f\u80fd\u65f6\u6709\u5176\u4e2d\u4e00\u6761\u6570\u636e\u5728\u6267\u884c\u6279\u91cf\u63d2\u5165\u7684\u65f6\u5019\u62a5\u9519\u4e86<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"911\" height=\"27\" src=\"https:\/\/www.coffecat.cn\/wp-content\/uploads\/2023\/12\/image.png\" alt=\"\" class=\"wp-image-226\" srcset=\"https:\/\/www.coffecat.cn\/wp-content\/uploads\/2023\/12\/image.png 911w, https:\/\/www.coffecat.cn\/wp-content\/uploads\/2023\/12\/image-300x9.png 300w, https:\/\/www.coffecat.cn\/wp-content\/uploads\/2023\/12\/image-768x23.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u8d77\u521d\u662f\u5728\u627e\u8fd9\u91cc\u7684\u7c7b\u578b\u662f\u5426\u548c\u6570\u636e\u5e93\u4e2d\u5b57\u6bb5\u7c7b\u578b\u5339\u914d\uff0c\u6b63\u5e38\u60c5\u51b5\u6570\u636e\u5e93\u5b57\u6bb5\u4e3aCLOB\u7c7b\u578b\u5728\u5c01\u88c5\u5b9e\u4f53\u65f6\u4f7f\u7528String\u662f\u53ef\u4ee5\u4fdd\u5b58\u6216\u662f\u8bfb\u53d6\u6210\u529f\u7684\uff0c\u56e0\u4e3a\u4e4b\u524d\u4e5f\u6ca1\u6709\u95ee\u9898\u3002\u540e\u6765\u767e\u5ea6\u67e5\u8be2\u8bf4\u662fCLOB\u7684\u4e0a\u9650\u662f4GB\uff0c\u9ed8\u8ba4\u4e3a4000\u5b57\u8282\uff0c\u5b58\u50a8\u65f6\u9700\u8981\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5b57\u8282\u5b58\u50a8\uff0c\u8bd5\u4e86\u4e00\u4e0b\uff0c\u4e0d\u884c\u3002<\/p>\n\n\n\n<p>\u4e2d\u5348\u7761\u4e86\u4e00\u89c9\u7ee7\u7eed\u641c\uff0c\u53d1\u73b0\u4e86\u95ee\u9898\u6240\u5728\uff0c\u5728\u4e00\u7bc7\u6765\u81eaCSDN @Orient_\u5927\u4f6c\u7684\u6587\u7ae0\u4e2d\u627e\u51fa\u4e86\u539f\u56e0\u3002<\/p>\n\n\n\n<p>\u5728\u6279\u91cf\u63d2\u5165\u7684\u65f6\u5019\u4f7f\u7528\u4e86\u865a\u8868\uff0c\u865a\u8868\u4e2d\u7684\u5b57\u6bb5\u7c7b\u578b\u4e3along\u7c7b\u578b\uff0cLONG \u6570\u636e\u7c7b\u578b\u4e2d\u5b58\u50a8\u7684\u662f\u53ef\u53d8\u957f\u5b57\u7b26\u4e32\uff0c\u6700\u5927\u957f\u5ea6\u9650\u5236\u662f2GB\uff0c\u8d85\u8fc7\u6700\u5927\u9650\u5236\u65f6\u8fd9\u91cc\u62a5\u7684\u9519\u5c31\u662f\u4e0a\u9762\u7684\u8fd9\u4e2acan bind a LONG value only for insert into a LONG column\u7684\u62a5\u9519\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"855\" height=\"297\" src=\"https:\/\/www.coffecat.cn\/wp-content\/uploads\/2023\/12\/image-1.png\" alt=\"\" class=\"wp-image-230\" srcset=\"https:\/\/www.coffecat.cn\/wp-content\/uploads\/2023\/12\/image-1.png 855w, https:\/\/www.coffecat.cn\/wp-content\/uploads\/2023\/12\/image-1-300x104.png 300w, https:\/\/www.coffecat.cn\/wp-content\/uploads\/2023\/12\/image-1-768x267.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u6240\u4ee5\u8fd9\u91cc\u7ed9\u51fa\u7684\u89e3\u51b3\u65b9\u6848\u5c31\u662f\u4e0d\u4f7f\u7528\u865a\u8868\uff0c\u901a\u8fc7\u5355\u6761\u63d2\u5165\u662f\u6ca1\u6709\u95ee\u9898\u7684\u3002<\/p>\n\n\n\n<p>\u5355\u6761\u63d2\u5165\u7684\u5199\u6cd5<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;insert id=&quot;insertUser&quot; parameterType=&quot;com.orient.user&quot;&gt;\n        INSERT INTO table_user (\n        id, user_code, user_name\n        ) values(\n            #{item.id,jdbcType=VARCHAR}, #{item.userCode,jdbcType=VARCHAR}, \n            #{item.userName,jdbcType=VARCHAR}\n        )\n&lt;\/insert&gt;\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #81A1C1\">&lt;insert<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">id<\/span><span style=\"color: #D8DEE9FF\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">insertUser<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">parameterType<\/span><span style=\"color: #D8DEE9FF\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">com.orient.user<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #81A1C1\">&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        INSERT INTO table_user (<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        id, user_code, user_name<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        ) values(<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">            #{item.id,jdbcType=VARCHAR}, #{item.userCode,jdbcType=VARCHAR}, <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">            #{item.userName,jdbcType=VARCHAR}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        )<\/span><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">&lt;\/insert&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u7531\u4e0a\u53ef\u5f97\u77e5\u53ef\u4ee5\u4f7f\u7528&nbsp;<code>begin<\/code>&nbsp;\u548c&nbsp;<code>end<\/code>&nbsp;\u6807\u7b7e\u56f4\u7ed5\u63d2\u5165\u8bed\u53e5\uff0c\u4ee5\u5b9e\u73b0\u6279\u91cf\u64cd\u4f5c<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"\n&lt;insert id=&quot;insertUserBatch&quot; parameterType=&quot;java.util.List&quot;&gt;\n        begin\n        &lt;foreach collection=&quot;userList&quot; item=&quot;item&quot; index=&quot;index&quot; separator=&quot;;&quot;&gt;\n            INSERT INTO table_user (\n            id, user_code, user_name\n        ) values(\n         #{item.id,jdbcType=VARCHAR}, #{item.userCode,jdbcType=VARCHAR}, \n         #{item.userName,jdbcType=VARCHAR}\n        )\n        &lt;\/foreach&gt;\n       ;end;\n&lt;\/insert&gt;\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">&lt;insert<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">id<\/span><span style=\"color: #D8DEE9FF\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">insertUserBatch<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">parameterType<\/span><span style=\"color: #D8DEE9FF\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">java.util.List<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #81A1C1\">&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        begin<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #81A1C1\">&lt;foreach<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">collection<\/span><span style=\"color: #D8DEE9FF\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">userList<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">item<\/span><span style=\"color: #D8DEE9FF\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">item<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">index<\/span><span style=\"color: #D8DEE9FF\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">index<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">separator<\/span><span style=\"color: #D8DEE9FF\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #81A1C1\">&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">            INSERT INTO table_user (<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">            id, user_code, user_name<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        ) values(<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">         #{item.id,jdbcType=VARCHAR}, #{item.userCode,jdbcType=VARCHAR}, <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">         #{item.userName,jdbcType=VARCHAR}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        )<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #81A1C1\">&lt;\/foreach&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">       ;end;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">&lt;\/insert&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u4e5f\u53ef\u4ee5\u5199\u6210<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;insert id=&quot;insertUserBatch&quot; parameterType=&quot;java.util.List&quot;&gt;\n        &lt;begin \/&gt;\n            INSERT INTO table_user (id, user_code, user_name) \n            values\n        &lt;foreach collection=&quot;userList&quot; item=&quot;item&quot; index=&quot;index&quot; separator=&quot;,&quot;&gt;\n           (#{item.id,jdbcType=VARCHAR}, #{item.userCode,jdbcType=VARCHAR}, \n         #{item.userName,jdbcType=VARCHAR})\n        &lt;\/foreach&gt;\n       &lt;end \/&gt;\n&lt;\/insert&gt;\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #81A1C1\">&lt;insert<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">id<\/span><span style=\"color: #D8DEE9FF\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">insertUserBatch<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">parameterType<\/span><span style=\"color: #D8DEE9FF\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">java.util.List<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #81A1C1\">&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #81A1C1\">&lt;begin<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">\/&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">            INSERT INTO table_user (id, user_code, user_name) <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">            values<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #81A1C1\">&lt;foreach<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">collection<\/span><span style=\"color: #D8DEE9FF\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">userList<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">item<\/span><span style=\"color: #D8DEE9FF\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">item<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">index<\/span><span style=\"color: #D8DEE9FF\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">index<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">separator<\/span><span style=\"color: #D8DEE9FF\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">,<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #81A1C1\">&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">           (#{item.id,jdbcType=VARCHAR}, #{item.userCode,jdbcType=VARCHAR}, <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">         #{item.userName,jdbcType=VARCHAR})<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #81A1C1\">&lt;\/foreach&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">       <\/span><span style=\"color: #81A1C1\">&lt;end<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">\/&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">&lt;\/insert&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u5f0f\u53ef\u4ee5\u89e3\u51b3mybatis\u6279\u91cf\u63d2\u5165\u62a5ORA-01461: can bind a LONG value only for insert into a LONG column\u7684\u9519\u8bef\u3002<\/p>\n\n\n\n<p>\u53c2\u8003\u6587\u7ae0\u94fe\u63a5\uff1a<a href=\"https:\/\/blog.csdn.net\/Orient_\/article\/details\/107659033\">mybatis\u6279\u91cf\u63d2\u5165\u62a5 ORA-01461-\u4ec5\u80fd\u7ed1\u5b9a\u8981\u63d2\u5165LONG\u5217\u7684LONG\u503c_mybatis ora-01461-CSDN\u535a\u5ba2<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u95ee\u9898\uff1a\u5728\u505a\u6279\u91cf\u65b0\u589e\u65f6\u5176\u4e2d\u6709\u4e00\u4e2a\u5b57\u6bb5\u9700\u8981\u5c06\u5bf9\u8c61\u96c6\u5408\u8f6c\u6362\u6210json\u5b57\u7b26\u4e32\u8fdb\u884c\u5b58\u50a8\uff0c\u6570\u636e\u5e93\u4f7f\u7528\u7684\u65f6Oracle\uff0c\u8fd9\u4e2a &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.coffecat.cn\/index.php\/2023\/12\/01\/mybatis%e6%89%b9%e9%87%8f%e6%8f%92%e5%85%a5%e6%8a%a5%e9%94%99ora-01461-can-bind-a-long-value-only-for-insert-into-a-long-column\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cmybatis\u6279\u91cf\u63d2\u5165\u62a5\u9519ORA-01461: can bind a LONG value only for insert into a LONG column\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[14,12,13,15],"class_list":["post-223","post","type-post","status-publish","format-standard","hentry","category-scatteredtechnicalpoints","tag-mybatis","tag-oracle","tag-13","tag-15"],"views":661,"_links":{"self":[{"href":"https:\/\/www.coffecat.cn\/index.php\/wp-json\/wp\/v2\/posts\/223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.coffecat.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.coffecat.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.coffecat.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.coffecat.cn\/index.php\/wp-json\/wp\/v2\/comments?post=223"}],"version-history":[{"count":23,"href":"https:\/\/www.coffecat.cn\/index.php\/wp-json\/wp\/v2\/posts\/223\/revisions"}],"predecessor-version":[{"id":663,"href":"https:\/\/www.coffecat.cn\/index.php\/wp-json\/wp\/v2\/posts\/223\/revisions\/663"}],"wp:attachment":[{"href":"https:\/\/www.coffecat.cn\/index.php\/wp-json\/wp\/v2\/media?parent=223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.coffecat.cn\/index.php\/wp-json\/wp\/v2\/categories?post=223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.coffecat.cn\/index.php\/wp-json\/wp\/v2\/tags?post=223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}