免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 8615 | 回复: 7
打印 上一主题 下一主题

用SQL向BLOB中插入数据 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-01-02 15:49 |只看该作者 |倒序浏览
insert into TESTBLOB (ID, BLOB) values (1, BLOB('BLOB30'))

这样是把字串'BLOB30'转成BLOB存在BLOB字段中么?

论坛徽章:
0
2 [报告]
发表于 2008-01-03 09:22 |只看该作者
阿门,为啥没有人回。。。。

论坛徽章:
0
3 [报告]
发表于 2008-01-03 09:50 |只看该作者
你这么插入数据有什么用 你打算实现什么?
blob数据不能用insert插入

论坛徽章:
0
4 [报告]
发表于 2008-01-03 11:43 |只看该作者
我就是不知道这样是插入了个什么,看之前的测试脚本里这样插入的,想知道这样操作的结果是什么,是不是把字串'BLOB30'转化为BLOB类型了。

论坛徽章:
0
5 [报告]
发表于 2008-01-03 11:45 |只看该作者
实现对处理BLOB的一系列function的测试

[ 本帖最后由 hannary 于 2008-1-3 11:47 编辑 ]

论坛徽章:
0
6 [报告]
发表于 2008-01-03 15:49 |只看该作者
转化成blob是肯定的

论坛徽章:
0
7 [报告]
发表于 2008-01-10 17:36 |只看该作者
---BLOB---(--string-expression----------------------)-------
                                                   |---integer---|

The BLOB function returns a BLOB representation of a string of any type.
string-expression
A string-expression whose value can be a character string, graphic string, or
a binary string.
integer
An integer value specifying the length attribute of the resulting BLOB
data type. If integer is not specified, the length attribute of the result is the
same as the length of the input, except where the input is graphic. In this
case, the length attribute of the result is twice the length of the input.
The result of the function is a BLOB. If the argument can be null, the result
can be null; if the argument is null, the result is the null value.

论坛徽章:
0
8 [报告]
发表于 2008-05-15 12:11 |只看该作者
up
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP