永发信息网

SQL 查询全部字段中没有生日的字段..怎么写??有快捷的方法吗?

答案:3  悬赏:50  手机版
解决时间 2021-03-09 19:24
  • 提问者网友:夢醒日落
  • 2021-03-09 11:34
SQL 查询全部字段中没有生日的字段..怎么写??有快捷的方法吗?
最佳答案
  • 五星知识达人网友:迷人又混蛋
  • 2021-03-09 12:31
select * into #table from 表
alter table #table drop column 生日字段
select * from #table
drop table #table
全部回答
  • 1楼网友:七十二街
  • 2021-03-09 14:14
select * from 表 where 生日字段 is null
  • 2楼网友:逐風
  • 2021-03-09 12:54
年龄最小 = 出生日最大 select * from tb_student where birthday = (select max(birthday) from tb_student) 年龄最大 = 出生日最小 select * from tb_student where birthday = (select min(birthday) from tb_student) 平均年龄 年龄 约等于 现在时间的年 - 出生的年 select avg( datediff (yy, getdate(), birthday) ) from tb_student
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯