数据库clob类型的字段在操作时,为什么要先插入空再用你自己的数据覆盖?在度娘那没找到答案!

2020-06-22 教育 90阅读
empty_LOB::=
Description of the illustration empty_lob.gif
Purpose
EMPTY_BLOB and EMPTY_CLOB return an empty LOB locator that can be used to initialize a LOB variable or, in an INSERT or UPDATE statement, to initialize a LOB column or attribute to EMPTY. EMPTY means that the LOB is initialized, but not populated with data.
上面的文章来自ORACLE官方文档 : lob对象在使用前需要用empty_blob/empty_clob来初始化 就比如 往杂物箱里面放一个新东西 你得先腾出一个空间再来放东西进去
不一定是别个藏着吧,估计是太基础了,不想说而已 或者 他们也不知道具体为什么要先这样后那样,只知道用法是那样…哈哈哈哈… 如果你用的是oracle的话 建议你看下 oracle 官方文档里面的sql language reference 和 sql developer guide
http://docs.oracle.com/cd/E11882_01/server.112/e41084/toc.htm
声明:你问我答网所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系fangmu6661024@163.com