— 示例表
CREATE TABLE test(col1 long);
— 重建一个备份表,把其中的long字段改为clob
Create TABLE testBak (col1 clob);
— 插入数据
INSERT INTO testBak SELECT to_lob(col1) FROM test;
COMMIT;
— 查询
SELECT * FROM testBak WHERE col like ‘%download%’;
xuenhua’s 站点
— 示例表
CREATE TABLE test(col1 long);
— 重建一个备份表,把其中的long字段改为clob
Create TABLE testBak (col1 clob);
— 插入数据
INSERT INTO testBak SELECT to_lob(col1) FROM test;
COMMIT;
— 查询
SELECT * FROM testBak WHERE col like ‘%download%’;