Oracle 存储过程中like语句的参数问题:
PROCEDURE FIND_PLANKEYWORD(I_STRKEY IN VARCHAR2, --关键字
O_CUR OUT SYS_REFCURSOR) --预案信息集合
IS
BEGIN
OPEN O_CUR FOR
SELECT * FROM TB_PLAN_MNAGER T WHERE T.PLANNAME LIKE '%'||I_STRKEY||'%';
END;
对于已经存在值的字段修改其类型:
alter table tbl add CREATE_TIME_N DATE;
update tbl set CREATE_TIME_N = to_date(CREATE_TIME, 'yyyy-mm-dd hh24:mi:ss');
alter table tbl drop column CREATE_TIME;
alter table tbl rename column CREATE_TIME_N to CREATE_TIME;