摘要:这里使用了分析函数,使用分组中的一组,进行求和 ,求最大值,最小值。 问题: 一:我这里使用了 DISTINCT去重,有没有效率更好的方式去重呢 二:分析函数不能使用条件过滤,比如某个分组的数据,我想只取某个字段等1的值的求和。
阅读全文
posted @ 2016-06-29 17:12
|
|||
06 2016 档案
摘要:这里使用了分析函数,使用分组中的一组,进行求和 ,求最大值,最小值。 问题: 一:我这里使用了 DISTINCT去重,有没有效率更好的方式去重呢 二:分析函数不能使用条件过滤,比如某个分组的数据,我想只取某个字段等1的值的求和。
阅读全文
posted @ 2016-06-29 17:12
摘要:左边填充 select lpad('abcde',10,'0') from dual; ==》00000abcde select lpad('abcde',10,'x') from dual;==》 xxxxxabcde 语法格式如下: lpad( string, padded_length, [
阅读全文
posted @ 2016-06-23 18:09
摘要:这个功能是在自己误操作,将某些数据更改错了,你想恢复更改错之前的数据,这个时候你可以使用这种方式 不过建议要小心更改数据,如果实在有必要去更新,请先备份数据表,不到万不得以才可以这么做。 SELECT * FROM Aselect * from a as of timestamp to_timest
阅读全文
posted @ 2016-06-23 18:03
摘要:var @(Perfix)_CheckArray=[]; @(Perfix)_CheckArray.length=0; var checkedItems = $('input[name="@(Perfix)selectid"]'); 获取所有CHECKBOX $.each(checkedItems, functio...
阅读全文
posted @ 2016-06-23 10:39
摘要:select a.*, b.* from (select count(1) as numberIll, features_level, sample_inspection_id from (SELECT i.features_level, i.features, i.sample_...
阅读全文
posted @ 2016-06-15 15:58
摘要:select count(1), features_level from (SELECT i.features_level, i.features, T.BASEAMINE_ID, T.COLUMN_NAME, V.COLUMN_VALUE, ...
阅读全文
posted @ 2016-06-04 11:14
|
|||