Oracle数据库clob字段insert报错

一:产生原因

oralce在处理sql的时候,会把传入的字符串转化为varchar2处理,varchar2的最大长度是4000,如果insert语句中单个字符串的长度超过4000,那就肯定会报错

二:解决办法

使用如下语句可以解决改问题

declare 
content clob :='BigData';  
begin 
    insert into table(id,name) usertable values(132,content); 
    end;

示例如下:

declare 
content clob :='<div class="pg-article-hd" data_creator="1549365" data_editer="22428" data_publish_time="2016-12-13 14:00:00.0" style="margin-bottom: 28.9688px;">
	<h1 style="margin: 0px; padding: 0px; font-size: 1.4rem; line-height: 1.2;">
		那些被你忽视的冬季取暖小贴</h1>
	<h1 style="margin: 0px; padding: 0px; font-size: 1.4rem; line-height: 1.2;">
		&nbsp;</h1>
	<h1 style="margin: 0px; padding: 0px; font-size: 1.4rem; line-height: 1.2;">
		<span style="color: rgb(153, 153, 153); font-size: 12px; line-height: 26px;">转自:&nbsp;</span><a href="http://dxy.com/column/author/dingxiangyisheng" style="font-size: 12px; line-height: 26px; color: rgb(153, 153, 153);" target="_blank">丁香医生</a></h1>
	<h1 style="margin: 0px; padding: 0px; font-size: 1.4rem; line-height: 1.2;">
		<span style="color:#a9a9a9;"><span style="font-size:12px;">图片来源:123rf.com.cn 正版图库</span></span></h1>
	<div>
		&nbsp;</div>
</div>
<div class="pg-article-cnt">
	<div class="editor-style" style="font-family: helvetica, tahoma, arial, sans-serif; line-height: 1.7; outline: 0px;">
		<div class="editor-body" style="margin-right: 0px; margin-bottom: 15px; margin-left: 0px; color: rgb(68, 68, 68); position: relative; margin-top: 0px !important;">
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; text-align: center; background-color: rgb(254, 254, 254);">
				<span style="line-height: 1.7;"><img alt="900500.png" src="http://img.dxycdn.com/dotcom/2016/12/08/50/uaku96p2.png" style="margin: 0px;" title="900500.png" /></span></p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				<span style="line-height: 1.7;">寒冬已至,瑟瑟凉风。</span></p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				无论是包暖区,窝在暖气屋里的北方人民,还是只包邮不包暖区,窝在床上哆嗦的南方人民。<span style="color: rgb(153, 153, 153);">(两广,及亮光光以南的,你们不要说话!)</span></p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				都已经告别了「防寒基本靠抖」的历史,大踏步的进入了「空调暖气电热毯,手捂水袋暖宝宝」的日子。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				然而随着各种各样取暖设备走进我们的生活,如何好好运用它们,可是很有有讲究的。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				今天丁香医生就来说说这个话题。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				看看这些常见的取暖设备,都有哪些被我们忽视的注意事项。</p>
			<h2 style="margin-right: 0px; margin-left: 0px; padding-top: 6.29688px; padding-bottom: 6.29688px; white-space: normal; margin-top: 0px !important; margin-bottom: 25px !important; padding-right: 0px !important; padding-left: 0px !important; font-size: 18px !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(226, 226, 226) !important; color: rgb(51, 51, 51) !important; line-height: 1.7 !important; background-color: rgb(254, 254, 254);">
				一、暖手宝虽好 可要防止低温烫伤</h2>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				充电式暖手宝、贴在身上的暖宝宝、热水袋大概是日常接触最多的便携取暖设备了。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				物美价廉,使用方便,老少咸宜,既拿即用。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; text-align: center; background-color: rgb(254, 254, 254);">
				<img alt="9005003.png" src="http://img.dxycdn.com/dotcom/2016/12/08/53/zlomndpr.png" style="margin: 0px;" title="9005003.png" /></p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				然而很多人都忽视了这些取暖设备可能带来「低温烫伤」的危害。</p>
			<blockquote style="margin: 15px 0px 15px 15px; padding: 5px 0px 5px 10px; border-left-width: 6px; border-left-style: solid; border-left-color: rgb(221, 221, 221); line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				<p style="margin: 0px 0px 15px; padding: 0px; color: rgb(153, 153, 153) !important;">
					暖手宝才多少温度,怎么会导致烫伤?</p>
			</blockquote>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				实际上,烫伤主要取决于接触温度和热作用的时间长短。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				短时间接触低温热源,流动的血液能够带走热量,防止了热能积聚。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				但是,如果长时间接触,并且局部组织受压,局部血流受到阻碍,热能就会聚集。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				所以就算不太高的温度接触时间久了,也会造成「低温烫伤」。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				市面上出售的暖手宝,其实际使用温度平均在 40 ℃~50 ℃ 之间。如果长期间使用,比如睡觉时把暖手宝放身上,就可能造成低温烫伤。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				所以使用暖手宝这样的取暖设备一定要注意几点:</p>
			<ul class="list-paddingleft-2" style="margin: 15px 0px; padding-right: 0px; list-style-position: outside; list-style-image: none; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				<li style="margin: 0px; padding: 0px;">
					<p style="margin: 0px; padding: 0px;">
						购买合格产品;</p>
				</li>
				<li style="margin: 0px; padding: 0px;">
					<p style="margin: 0px; padding: 0px;">
						控制热源温度;</p>
				</li>
				<li style="margin: 0px; padding: 0px;">
					<p style="margin: 0px; padding: 0px;">
						控制接触时间,同一部位连续取暖不要超过 2 小时,不要在昏睡、服用镇静剂后使用暖宝宝,更不建议通宵使用暖宝宝;</p>
				</li>
				<li style="margin: 0px; padding: 0px;">
					<p style="margin: 0px; padding: 0px;">
						防止直接接触,尤其注意手肘、大腿内测等皮肤薄弱区;</p>
				</li>
				<li style="margin: 0px; padding: 0px;">
					<p style="margin: 0px; padding: 0px;">
						格外留意的人群,儿童、老人、糖尿病患者、瘫痪人群都要特别注意。</p>
				</li>
			</ul>
			<h2 style="margin-right: 0px; margin-left: 0px; padding-top: 6.29688px; padding-bottom: 6.29688px; white-space: normal; margin-top: 0px !important; margin-bottom: 25px !important; padding-right: 0px !important; padding-left: 0px !important; font-size: 18px !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(226, 226, 226) !important; color: rgb(51, 51, 51) !important; line-height: 1.7 !important; background-color: rgb(254, 254, 254);">
				二、地暖致癌?纯属子虚乌有</h2>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				地暖是近年来逐渐流行的一种居家整体供暖的方式。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				目前大多数使用的「地暖」,全称是「低温热水地板辐射采暖」。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				这种温度调节手段,将整个建筑物内部地面作为散热器,通过地板结构层内铺设的管道,在管道内注入热水,加热地板混凝土层,使人感到温暖。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; text-align: center; background-color: rgb(254, 254, 254);">
				<img alt="9005005.png" src="http://img.dxycdn.com/dotcom/2016/12/08/55/zxus3jhi.png" style="margin: 0px;" title="9005005.png" /></p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				然而就是这「辐射」二字,让无数人谈地暖而色变,各种「地暖致癌」「地暖导致白血病」的谣言在朋友圈传播开。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				其实,这都是文字狱,冤啊。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				大部分人所认为的辐射,是电离辐射,它具有「辐射生物效应」,能够杀伤生物细胞,破坏生物组织。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				然而地暖产生的「热辐射」,属于「非电离辐射」,跟无线电波、可见光是同一种类型,无毒无害。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				虽然名字相近,但是此「辐射」非彼「辐射」,千万不要弄混。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				不然啊,就变成晒晒太阳,烤烤暖气都会「致癌」了。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				所以啊,可不能为了一个子虚乌有的谣言,而让自己在大冬天里受冻哦。</p>
			<h2 style="margin-right: 0px; margin-left: 0px; padding-top: 6.29688px; padding-bottom: 6.29688px; white-space: normal; margin-top: 0px !important; margin-bottom: 25px !important; padding-right: 0px !important; padding-left: 0px !important; font-size: 18px !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(226, 226, 226) !important; color: rgb(51, 51, 51) !important; line-height: 1.7 !important; background-color: rgb(254, 254, 254);">
				三、电热毯暖床,特殊人群需要留意</h2>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				接下来我们要说的是暖床神器电热毯。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				对于地处南方的朋友来说,没有暖气的冬夜里,一张电热毯宛如小太阳一般的存在。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				然而很多人并不知道,并不是所有人都可以享受开着电热毯一觉到天明的感觉。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				如果家中有这些成员:</p>
			<ul class="list-paddingleft-2" style="margin: 15px 0px; padding-right: 0px; list-style-position: outside; list-style-image: none; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				<li style="margin: 0px; padding: 0px;">
					<p style="margin: 0px; padding: 0px;">
						孕妇</p>
				</li>
				<li style="margin: 0px; padding: 0px;">
					<p style="margin: 0px; padding: 0px;">
						备孕男性</p>
				</li>
				<li style="margin: 0px; padding: 0px;">
					<p style="margin: 0px; padding: 0px;">
						糖尿病患者</p>
				</li>
			</ul>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				就需要注意了,电热毯不可以任性用。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; text-align: center; background-color: rgb(254, 254, 254);">
				<img alt="9005006.png" src="http://img.dxycdn.com/dotcom/2016/12/08/59/sncjkuwa.png" style="margin: 0px;" title="9005006.png" /></p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				对于孕妇来说,长时间使用、或者电热毯温度过高,都可能造成体温过高从而影响胎儿。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				而对于备孕男性来说,美国妊娠协会(American Pregnancy Association)指出,长时间使用电热毯可能引起男性睾丸温度过热,造成精子数量下降。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				至于糖尿病患者,因为长时间的高血糖可能造成皮肤麻木,严重者足部甚至四肢的感觉都会丧失。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				这种情况下长时间使用电热毯,很可能会因为无法感知温度而不能及时关闭电热毯,从而导致烫伤。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				所以对于上述人群,使用电热毯要多留个心眼。如果真的受不了冬夜的寒冷而想用电热毯的话,最好的办法就是:</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				<span style="font-weight: 700;">开着电热毯暖床可以,但是不要开着它睡觉,上床就关掉。</span></p>
			<h2 style="margin-right: 0px; margin-left: 0px; padding-top: 6.29688px; padding-bottom: 6.29688px; white-space: normal; margin-top: 0px !important; margin-bottom: 25px !important; padding-right: 0px !important; padding-left: 0px !important; font-size: 18px !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: rgb(226, 226, 226) !important; color: rgb(51, 51, 51) !important; line-height: 1.7 !important; background-color: rgb(254, 254, 254);">
				四、其他注意事项:防干、防毒、防烧伤</h2>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				除了暖手宝、地暖、电热毯,常见的冬季取暖设备还包括空调、暖气、电热扇等。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				甚至在个别地区,还保留有用炭火取暖的习惯。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				对于这些,需要注意几点:</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				<span style="font-weight: 700;">1. 预防干燥</span></p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				冬季气候本身就干燥。很多人贪图暖和和的感受,会把空调暖气开得大大的,导致人体很容易出现缺水的状况。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				所以,在初供暖的时候,因空气干燥无法适应,突然流鼻血或感冒的情况比较多见。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				而这些,都需要通过增加空气湿度和降低室内温度来调整。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				<span style="font-weight: 700;">2. 预防中毒</span></p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				这主要针对还在用炭火取暖的人群。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; text-align: center; background-color: rgb(254, 254, 254);">
				<img alt="9005002.png" src="http://img.dxycdn.com/dotcom/2016/12/08/57/gt2kp87s.png" style="margin: 0px;" title="9005002.png" /></p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				一氧化碳无色无味,很难察觉,一旦吸入过量,几分钟内就可致命。所以并不建议使用炭火取暖。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				如果非要用的话,<span style="font-weight: 700;">一定要做好通风的处理。</span></p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				同时也不要在封闭的室内,进行诸如烧烤之类可能产生一氧化碳气体的活动。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				<span style="font-weight: 700;">3. 预防烧伤</span></p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				与暖手宝之类的可能造成「低温烫伤」的取暖设备不同,一些取暖设施,如电热扇、小太阳等,因为温度过高可能会直接造成烧伤危险。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				所以,对于使用小太阳这样的电暖器设备,要保持 50 cm 以上的安全距离,并且注意手肘等皮肤薄弱地位。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				总之,取暖虽好,可也要身体健康。</p>
			<p style="margin: 0px 0px 15px; padding: 0px; line-height: 23.8px; white-space: normal; background-color: rgb(254, 254, 254);">
				希望丁香医生的这些冬季取暖小贴士,可以在寒冷的冬天,既温暖你的身体,也温暖你的心。</p>
			<div>
				&nbsp;</div>
		</div>
	</div>
</div>
<p>
	&nbsp;</p>';
begin 
	insert into  CMS_ARTICLE_DATA VALUES('62d3732931d7462b94926e74c762f1ac',content , null, null, '1'); 
		end;// A code block

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

班婕妤

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值