!!!怎么获得系统日期的年份,再将它减去表示日期的字段,得到年龄?!!! select to_number(to_char(sysdate,'YYYY'))-to_number(to_char(BIRTHDAY,'YYYY')) age from dual; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select months_between(sysdate,birthday)/12 from employ where nameid_m_nameid; select to_char(sysdate,'yyyy')-to_char(birthday,'yyyy') from employ where ...;用除法最好而且准确:select months_between(sysdate,birthday)/12 from employ where...; ORACLE中触发器在插入A表后自动修改B表数据么? 请问怎么取表中两条连续记录之间的日期差异? 求装配树SQL语句 SQL 语句怎么写呢? 怎样修改我的SQL语句 sqlldr导入时能不能跳过数据文件的第一行(标题行) 服务名问题 关于oracle9i分配空间的命令行如何写? 在windows2003下装Oracle8.16有问题,请各位高手紧急救援! 请问oracle中自增字段如何设置的? dict 是哪个用户的... SQL语法问题
select months_between(sysdate,birthday)/12 from employ where...;