![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
sql脚本
iteye_1109
这个作者很懒,什么都没留下…
展开
-
oracle sql优化
优化思路: 1.脚本优化; 2.索引优化; 3.分区表; 4.物化视图 分析执行计划set autotrace on; 执行计划基于数据库的统计信息analyze ,dbms_stats; dbms_stats:dbms_stats.gather_table_stats,dbms...2015-08-16 07:56:54 · 103 阅读 · 0 评论 -
全国行政三级地域数据
-- -- 表的结构 `area` -- CREATE TABLE IF NOT EXISTS `area` ( `id` int(11) NOT NULL auto_increment, `code` varchar(6) NOT NULL, `name` varchar(20) NOT NULL, `citycode` varchar(6) NOT NULL,...2014-03-23 23:50:21 · 115 阅读 · 0 评论 -
sql点滴
1. 使用like别忘了escape like '%/s' escape '/' 2. 使用行表达式查询条件 where a.id = '1' and a.name='user' 可以写成 where (a.id,a.name)=('1','user') 可能会走索引,速度会快 3. with s1 as (select * from table t where...原创 2015-03-13 16:20:41 · 92 阅读 · 0 评论