Children's Day, I wish you a Happy Children's Day!

2019-06-01 Today is Children's Day, I wish you a Happy Children's Day!

Do you know how much it within years old, and children do? Children younger than 18 years of age.

 

The CREATE  TABLE  [ the dbo ] . [ Child apos Age ] 
( 
    [ Definition ]  NVARCHAR ( 20 is ),
     [ Age ]  the INT 
) 

the INSERT  the INTO  [ the dbo ] . [ Child apos Age ] ( [ Definition ] , [ Age ] )
 the VALUES (N ' CRC Convention ' , 18 ), (N ' Chinese law ' , 18), (N ' medical ' , 14 ), (N ' international ' , 18 is ) 

the SELECT  [ Definition ] , [ Age ]  the FROM  [ the dbo ] . [ Child apos Age ]
Source Code

 

I would like to know when people born children are:

SELECT [definition],[age],DATEADD(YEAR,-[age],CURRENT_TIMESTAMP) AS [birthday] FROM [dbo].[child's age]
Source Code

 

Guess you like

Origin www.cnblogs.com/insus/p/10959385.html