从Date类型字段获得当日周几的DAYNAME函数

例:

select dayname(date) from pos.daywork

原文地址:https://www.cnblogs.com/heyang78/p/3335779.html