当前位置:网站首页>时间转日期的sql语句应该怎么写?
时间转日期的sql语句应该怎么写?
2022-07-28 17:48:00 【weixin_43425561】
有时候需要把日期时间转为日期,如将 2022-07-22 06:17:27.743 转换为 2022-07-22 ,可以使用CONVERT()函数,如下这样写:
SELECT * FROM GDXY WHERE MeterFactory = 'HZSK' AND CONVERT(VARCHAR(10),UpLoadTime ,120) = '2022-07-22' ORDER BY Id DESC 
边栏推荐
- 博途1200/1500PLC上升沿下降沿指令编程应用技巧(bool数组)
- SaltStack之数据系统
- SaltStack配置管理
- npm安装和卸载全局包
- When CNN meets transformer cmt:revolutionary neural networks meet vision transformers
- 架构基本概念和架构本质
- Salt SSH of saltstack
- 读了三年论文,我今天才学会阅读摘要
- leetcode day3 查找重复的电子邮箱
- Have you ever seen this kind of dynamic programming -- the stock problem of state machine dynamic programming (Part 2)
猜你喜欢

Report redirect after authorized login on wechat official account_ The problem of wrong URI parameters

Question bank and answers of the latest national fire-fighting facility operators (intermediate fire-fighting facility operators) in 2022

基于C语言的信息管理系统和小游戏

App自动化测试是怎么实现H5测试的

英语文章翻译-英语文章翻译软件-免费批量翻译

This customized keyboard turns me on~

基于QTGUI图像界面的空战游戏设计

宝塔面板搭建小说CMS管理系统源码实测 - ThinkPHP6.0

并发程序设计,你真的懂吗?

Pytoch: quickly find the main diagonal elements and non diagonal elements of NxN matrix
随机推荐
华为入股南京芯视界,布局固态激光雷达芯片领域
Ardupilot software in the loop simulation and online debugging
source insight项目导入和使用教程
navicate修改数据库名的方式
leetcode day3 查找重复的电子邮箱
MySQL8 tmp_table_size和max_heap_table_size
文章翻译软件-批量免费翻译软件支持各大翻译接口
Rust Getting Started Guide (modules and engineering structures)
美国将提供250亿美元补贴,鼓励英特尔等芯片制造商迁回产线
In order to develop high-end photoresist, Jingrui Co., Ltd. invested 75million yuan to purchase SK Hynix ASML lithography machine
在矩池云快速安装torch-sparse、torch-geometric等包
读了三年论文,我今天才学会阅读摘要
China's first chip stamp released: built-in 120um ultra-thin NFC chip
This customized keyboard turns me on~
Transformer for anomaly detection - instra "painting transformer for anomaly detection"
【微信小程序开发】页面导航与传参
开盘暴涨215%!国产信号链芯片企业芯海科技登陆科创板
Amazon launched Amazon one palm payment system, and the contactless palm vein recognition market is expected to explode
调用整数或字符数组函数里的参数应该传入啥
MySQL性能测试工具sysbench学习