怎样获得真实年龄的方法
在注册页面的时候,只有选择生日的日期,存入表中,但是当要提取真实年龄的时候,表里却没有年龄这个字段,所以,我想请教一下,怎样通过系统时间减去表里存入的生日日期,再把所得的真实年龄显示到页面上,这个方法怎样实现. 
 附带一下,怎么样通过关键字检索整个数据库的sql查询语句.
------解决方案--------------------上面的查询语句 把所有的 都查询出来   
  绑定年龄的时候 .只需要绑定字段 AGE 就可以了..   
 楼主完全搞笑...既然2个都写出来..就不能把他们组合吗
------解决方案--------------------CREATE FUNCTION DT_GETAGE (@birthday datetime)   
 RETURNS int  AS   
 BEGIN  
 if @birthday is null 
 	return 0   
 declare @now datetime 
 select @now = DBO.DT_NOW()   
 if @birthday > = @now 
 	return 0   
 declare @age int 
 declare @bYear int 
 declare @bMonth int 
 declare @bDay int 
 declare @nYear int 
 declare @nMonth int 
 declare @nDay int   
 set @bYear = YEAR(@birthday) 
 set @bMonth = MONTH(@birthday) 
 set @bDay = DAY(@birthday)   
 set @nYear = YEAR(@now) 
 set @nMonth = MONTH(@now) 
 set @nDay = DAY(@now)   
 set @age = @nYear - @bYear 
 if @nMonth  < @bMonth 
 	return @age - 1   
 if @nMonth >  @bMonth 
 	return @age   
 if @nDay  < @bDay 
 	return @age - 1   
 return @age   
 END