SQL SERVER 中,varchar类型日期 如2020-01 如何提取当前月
select substring("2020-01", 6, 2)*1 as M
select right("2020-01", 2)*1 as M
=====
方法不唯一,自行扩展;