SQL语句中, 怎样把日期转为字符串?

SQL语句中, 怎样把日期转为字符串?。。

CONVERT
(data_type[(length)],
expression
[,
style])
参数
expression
data_type
目标系统所提供的
数据类型
,包括
bigint

sql_variant。不能使用用户
定义
的数据类型。有关可用的数据类型的更多信息,请参见数据类型。
length
nchar、nvarchar、char、varchar、binary

varbinary
数据类型的可选参数。
style
日期格式
样式
,借以将
datetime

smalldatetime
数据转换为字符数据(nchar、nvarchar、char、varchar、nchar

nvarchar
数据类型);
或者
字符串
格式样式,借以将
float、real、money

smallmoney
数据转换为字符数据(nchar、nvarchar、char、varchar、nchar

nvarchar
数据类型)。
在表中,左侧的两列表示将
datetime

smalldatetime
转换为字符数据的
style
值。

style
值加
100,可获得包括世纪数位的四位年份
(yyyy)。
温馨提示:答案为网友推荐,仅供参考