1. 首页
  2. 数据库
  3. 其它
  4. 数据库的日期格式转换

数据库的日期格式转换

上传者: 2020-12-23 02:38:25上传 PDF文件 14.05KB 热度 15次
只要在convert中指定日期格式的代号就够了,如: select convert(char(20),getdate(),101) select emp_id,convert(char(20),hire_dt,101) from employee —————————————————– 日期格式 代号 ——————– ———– 04/05/2000 101 ——————– ———– 2000.04.05 102 ——————– ———– 05/04/2000 103 ——————– ———– 05.04.2000
下载地址
用户评论