代码改变世界

oracle语句有关知识

2011-12-31 09:47  鹏雕  阅读(217)  评论(0)    收藏  举报

出生日期算年龄:select floor((sysdate-出生日期)/365) from 表

两列合并:select to_char(经度)||' '||to_char(纬度) as GPS定位 from 表

如果为空置为0: select nvl(家畜总数,0) from 表