【发布时间】:2018-02-28 12:31:57
【问题描述】:
我正在关注 Mysql 查询:
select str_to_date((select distinct cast(substr(tb2.sub1,1,4) AS CHAR) as year from (
SELECT SUBSTRING_INDEX(file_name,'_',-1) as sub1 from table2) as tb2) , '%Y')
这是正确的,因为 mysqlworkbench 返回绿旗但没有输出。
你能帮帮我吗?
【问题讨论】:
-
看不到源数据,很难判断
-
没有输出?没有行?表示您的
SELECT ... from table2没有得到任何结果。
标签: mysql str-to-date