语法:
CONVERT(VARCHAR(7),<字段名称>,121)
时间转字符:select CONVERT(VARCHAR(7),dyxq,121),* from TBYPKC03--取年月select CONVERT(VARCHAR(10),dyxq,121),* from TBYPKC03--取年月日