1、利用convert函数获取时间的时分秒
=convert(varchar(10),getdate(),108)

2、convert函数的语法
CONVERT(data_type(length),data_to_be_converted,style)
data_type(length)规定目标数据类型
data_to_be_converted需要转换的值
style规定输出格式

3、convert格式可以使用的style的值

4、例如获取当前时间的月日年信息,利用style=110

5、获取带“/”年月日时间信息

6、获取不带"/"的年月日时间信息
