防弹少年团puma同款鞋:关于asp生日的问题!
来源:百度文库 编辑:杭州交通信息网 时间:2024/05/09 17:01:06
字段中有一个是生日UserBirthday现在我想在首页显示今日过生日的用户,sql语句应该怎么写?谢谢!
Sql="select * from 表 where Day(UserBirthday)="'&Day(Date())&' and Month(UserBirthday)='"&Month(Date())&"'"
conn.execute(Sql)
select * from user
UserBirthday=day(rs("UserBirthday"))
if UserBirthday=day(now) then
.
.
.
.
.
end if
...where DateValue(UserBirthday)=date() ...