我Table1.column1在 Oracle Server 中使用了诸如12345678910.
如何删除字符串的前六个字符?结果应该是78910。
我有以下查询来显示每个国家/地区组单日的计数,例如 20160101。
\n\n如何修改以下查询,以便它可以按日期、月份和年份分组?
\n\n请注意当前正在使用 Oracle 数据库。
\n\n提前谢谢了。
\n\nSelect count(1), country_of_sale, substr(datefield,1,8) AS datefield1\nfrom table \nwhere country_of_sale IN (\xe2\x80\x98USA\xe2\x80\x99,\xe2\x80\x99EUROPE\xe2\x80\x99,\xe2\x80\x99ASIA\xe2\x80\x99)\ngroup by country_of_sale, substr(datefield,1,8)\norder by substr(datefield,1,8)\nRun Code Online (Sandbox Code Playgroud)\n