insert oracle data,Insert data in clob

在尝试使用Oracle数据库插入超过4000字符的CLOB数据时,遇到了ORA-01704错误。错误信息提示字符串字面量过长。解决方法是使用绑定变量来插入长值,而非直接在SQL语句中写入大量文本。创建了一个名为TEST_CLOB的表,试图插入包含菜单项和价格的长文本,但遇到了插入失败的问题。
摘要由CSDN通过智能技术生成

Dear experts,

I am trying to insert more than 4000 characters by using clob,it is not allowing to insert

i am getting below errror while inserting

SQL Error: ORA-01704: string literal too long

01704. 00000 -  "string literal too long"

*Cause:    The string literal is longer than 4000 characters.

*Action:   Use a string literal of at most 4000 characters.

Longer values may only be entered using bind variables.

create TABLE test_clob

(

T_COL_CLOB CLOB

);

INSERT INTO TEST_CLOB

VALUES

(

'

Belgian Waffles

$5.95

Two of our famous Belgian Waffles with plenty of real maple syrup

650

Strawberry Belgian Waffles

$7.95

Light Belgian waffles covered with strawberries and whipped cream

900

Berry-Berry Belgian Waffles

$8.95

Light Belgian waffles covered with an assortment of fresh berries and whipped cream

900

French Toast

$4.50

Thick slices made from our homemade sourdough bread

600

Homestyle Breakfast

$6.95

Two eggs, bacon or sausage, toast, and our ever-popular hash browns

950

Berry-Berry Belgian Waffles

$8.95

Light Belgian waffles covered with an assortment of fresh berries and whipped cream

900

French Toast

$4.50

Thick slices made from our homemade sourdough bread

600

Homestyle Breakfast

$6.95

Two eggs, bacon or sausage, toast, and our ever-popular hash browns

950

Berry-Berry Belgian Waffles

$8.95

Light Belgian waffles covered with an assortment of fresh berries and whipped cream

900

French Toast

$4.50

Thick slices made from our homemade sourdough bread

600

Homestyle Breakfast

$6.95

Two eggs, bacon or sausage, toast, and our ever-popular hash browns

950

Berry-Berry Belgian Waffles

$8.95

Light Belgian waffles covered with an assortment of fresh berries and whipped cream

900

French Toast

$4.50

Thick slices made from our homemade sourdough bread

600

Homestyle Breakfast

$6.95

Two eggs, bacon or sausage, toast, and our ever-popular hash browns

950

Berry-Berry Belgian Waffles

$8.95

Light Belgian waffles covered with an assortment of fresh berries and whipped cream

900

French Toast

$4.50

Thick slices made from our homemade sourdough bread

600

Homestyle Breakfast

$6.95

Two eggs, bacon or sausage, toast, and our ever-popular hash browns

950

Berry-Berry Belgian Waffles

$8.95

Light Belgian waffles covered with an assortment of fresh berries and whipped cream

900

French Toast

$4.50

Thick slices made from our homemade sourdough bread

600

Homestyle Breakfast

$6.95

Two eggs, bacon or sausage, toast, and our ever-popular hash browns

950

Berry-Berry Belgian Waffles

$8.95

Light Belgian waffles covered with an assortment of fresh berries and whipped cream

900

French Toast

$4.50

Thick slices made from our homemade sourdough bread

600

Homestyle Breakfast

$6.95

Two eggs, bacon or sausage, toast, and our ever-popular hash browns

950

'

)

Please help to insert data

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值