摘要: 创建自定义函数create function getNameById (@tid int)returns varchar(100)asbegindeclare @tname varchar(100)select @tname=teacher_name from t_teacher_info where teacher_id=@tidreturn @tnameend-------------------------------------------------------------------------------------------调用自定义函数select *,dbo.getNam 阅读全文
posted @ 2012-09-13 17:19 心随梦飞[fosilzhou] 阅读(233) 评论(0) 推荐(0) 编辑