一、定义实体类Person,封装生成的数据
package net.dc.test; public class Person { private String name; private String sex; private int age; public String getName() { return name; } public void se...
定义函数:
create function [dbo].[getage]
(
@birthday nvarchar(20) --生日
)
returns varchar(20)
as
begin
if(@birthday is null or @birthday='')
return '';
-- declare the return varia...