MySQL DATE() 函数
SQL 教程
· 2019-03-04 12:26:29
定义和用法
DATE() 函数提取日期或日期/时间表达式的日期部分。
语法
DATE(date)
date 参数是合法的日期表达式。
实例
假设我们有如下的 "Orders" 表:
| OrderId | ProductName | OrderDate |
|---|---|---|
| 1 | Jarlsberg Cheese | 2008-11-11 13:23:44.657 |
下面是 SELECT 语句:
SELECT ProductName, DATE(OrderDate) AS OrderDate
FROM Orders
WHERE OrderId=1
结果如下所示:
| ProductName | OrderDate |
|---|---|
| Jarlsberg Cheese | 2008-11-11 |
点击查看所有 SQL 教程 文章: https://codercto.com/courses/l/29.html
Algorithms
Sanjoy Dasgupta、Christos H. Papadimitriou、Umesh Vazirani / McGraw-Hill Education / 2006-10-16 / GBP 30.99
This text, extensively class-tested over a decade at UC Berkeley and UC San Diego, explains the fundamentals of algorithms in a story line that makes the material enjoyable and easy to digest. Emphasi......一起来看看 《Algorithms》 这本书的介绍吧!
CSS 压缩/解压工具
在线压缩/解压 CSS 代码
RGB CMYK 转换工具
RGB CMYK 互转工具