原文:數據庫——查詢數據庫如何在出生年月日中取年份

Year 生日 ,得到年Month 生日 ,得到月Day 生日 ,得到日前提是這個生日是一個日期型字段。 查詢和學號為 的同學同年出生的所有學生的Sno Sname和Sbirthday列。 select Sno,Sname,Sbirthday from Student where Sbirthday select Sbirthday from Student where Sno 年月日全部匹配 s ...

2016-01-15 23:20 0 6819 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM