Home > Database > Mysql Tutorial > body text

SQL取时间部分

WBOY
Release: 2016-06-07 14:56:36
Original
1265 people have browsed it

SQL取时间部分 无 SELECT CONVERT(varchar(8),GetDate(),8)SELECT CONVERT(varchar(8),GetDate(),24)SELECT CONVERT(varchar(8),GetDate(),108) SELECT CONVERT(time,GetDate())SELECT CAST(GetDate() AS time)

SQL取时间部分
SELECT CONVERT(varchar(8),GetDate(),8)
SELECT CONVERT(varchar(8),GetDate(),24)
SELECT CONVERT(varchar(8),GetDate(),108)
Copy after login
SELECT CONVERT(time,GetDate())
SELECT CAST(GetDate() AS time)
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template