Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在我的 sql 中获取当前日期,例如130615格式,当前日期是 2013-06-15,所以我需要获取日期为 130615。怎么做?
您需要使用date_format()函数。
尝试这个
SELECT REPLACE(SUBSTRING('your_date_column', 3), '-', '') from ....
这里有一个演示