-
If exists (select * from KSQL_USERTABLES where KSQL_TABNAME='T_HR_PersonWorkExp')
begin
if exists (select * from KSQL_USERCOLUMNS where KSQL_COL_NAME ='FJobDesc' and KSQL_COL_TABNAME='T_HR_PersonWorkExp' and KSQL_COL_TYPE!='CLOB')
begin
alter table T_HR_PersonWorkExp add tempfield_20160504 clob(10000)
update T_HR_PersonWorkExp set tempfield_20160504=FJobDesc
alter table T_HR_PersonWorkExp drop column FJobDesc
alter table T_HR_PersonWorkExp add FJobDesc clob(10000)
update T_HR_PersonWorkExp set FJobDesc=tempfield_20160504
alter table T_HR_PersonWorkExp drop column tempfield_20160504
end
end
rec
为招聘扩展字段长度
-
If exists (select * from KSQL_USERTABLES where KSQL_TABNAME='T_HR_PersonCertify')
begin
if exists (select * from KSQL_USERCOLUMNS where KSQL_COL_NAME ='FRemark' and KSQL_COL_TABNAME='T_HR_PersonCertify')
begin
alter table T_HR_PersonCertify alter column FRemark nvarchar(800)
end
end
rec
为招聘扩展字段长度
-
If exists (select * from KSQL_USERTABLES where KSQL_TABNAME='T_MP_ProjectExperience')
begin
if not exists (select * from KSQL_USERCOLUMNS where KSQL_COL_NAME ='FPDescription' and KSQL_COL_TABNAME='T_MP_ProjectExperience')
begin
alter table T_MP_ProjectExperience add FPDescription clob(10000)
update T_MP_ProjectExperience set FPDescription=FDescription_l2
end
if exists (select * from KSQL_USERCOLUMNS where KSQL_COL_NAME ='FMainResposibility' and KSQL_COL_TABNAME='T_MP_ProjectExperience' and KSQL_COL_TYPE!='CLOB')
begin
alter table T_MP_ProjectExperience add tempfield_20160504 clob(10000)
update T_MP_ProjectExperience set tempfield_20160504=FMainResposibility
alter table T_MP_ProjectExperience drop column FMainResposibility
alter table T_MP_ProjectExperience add FMainResposibility clob(10000)
update T_MP_ProjectExperience set FMainResposibility=tempfield_20160504
alter table T_MP_ProjectExperience drop column tempfield_20160504
end
end
rec
为招聘扩展字段长度