摘要:
select to_char(created_datetime,'yyyy-MM') as month,count(*) from DELIVERY_HISTORY group by to_char(created_datetime,'yyyy-MM') order by month; SQL> s 阅读全文
posted @ 2020-01-09 17:37
逆火狂飙
阅读(230)
评论(1)
推荐(0)
摘要:
SQL> SELECT COUNT (*) as cnt FROM ALL_TABLES WHERE table_name = UPPER('your_table'); CNT 1 返回1表示存在,0表示不存在。 --END-- 2020-01-09 14:27 阅读全文
posted @ 2020-01-09 13:27
逆火狂飙
阅读(1069)
评论(1)
推荐(0)
摘要:
import commands print commands.getstatusoutput('ls') 输出: (0, '1.py\nwork.nfs') 参考文档: https://blog.csdn.net/anshejd70787/article/details/101491324 --EN 阅读全文
posted @ 2020-01-09 09:22
逆火狂飙
阅读(1317)
评论(0)
推荐(0)
摘要:
小表不会产生性能问题,大表才会。要练习SQL调优,还非得有大表不可。但数据不会自然产生,没有数据时如何创建一张千万级别的大表呢? 之前,我想用Oracle的批量插入语法去插入数据,此语法如下: INSERT ALL INTO firsttb(NAME, age,createdtime) values 阅读全文
posted @ 2020-01-09 08:52
逆火狂飙
阅读(1527)
评论(1)
推荐(0)