SQL - 返回0结果为空时

时间:2016-05-13 17:31:48

标签: sql oracle oracle11g coalesce nvl

使用oracle 11g

如果结果为空,我如何获得00000。我尝试过coalesce和nvl - 没有工作。

 select lpad(movie_id, 5, '0') as MOVIE_ID from schema_A where movieB='642354';  

0 个答案:

没有答案