for c in (select column_value from table(f_split(V_FileID, ','))) loop --若没有填写资格开始结束时间,则填入 select count(*) into numDataCount from ly_zg_jzfbt z where file_id = c.column_value and z.pt_valid_stime is null; then update ly_zg_jzfbt z set z.pt_valid_stim