数据库学习10查询会员的年龄.pdfVIP

  • 7
  • 0
  • 约7.05千字
  • 约 6页
  • 2022-09-02 发布于北京
  • 举报
--查询会员的 select year (GETDATE ())-year (c_Birth) as from Customers --year 截取 年份 year(GETDATE())当前时间 --查询籍贯为“湖南”的会员 select c_Address from Customers where c_Address like 湖南% --查询 在-30岁的会员 select * from Customers where year (GETDATE ())-year (c_Birth) bet n 20 and 30 --查询来自“湖

文档评论(0)

1亿VIP精品文档

相关文档