update tablename set score=0 where score is null

解决方案 »

  1.   

    如果成绩是数字表示的话,不要to_number()就可以,nvl(成绩,0)
      

  2.   

    谢谢以上的回帖,不过只是转化为0.
    不好意思,我没说清楚.用一条SQL语句将学生的成绩(包括有无成绩的)按指定的分数段将有成绩的筛选出来,不理会没有成绩的.
      

  3.   

    select * from tablename where score between minscore and maxscore
    score是数字类型,没有成绩的不会在查询结果中出现
      

  4.   

    是文本类型,所以才用 to_number