1、使用distinct查询所有不重复的记录2、创建数据表相同结构的临时表,将第一步的数据复制进去
create temporary table if not exists student_temp as (select distinct(name), sex
from student);3、tru...
分类:
数据库 时间:
2014-06-13 06:04:01
阅读次数:
290
关于处理小数点位数的几个oracle函数()1. 取四舍五入的几位小数select
round(1.2345, 3) from dual;结果:1.2352. 保留两位小数,只舍select trunc(1.2345, 2) from
dual;结果:1.23select trunc(1.2399,...
分类:
数据库 时间:
2014-06-12 23:19:06
阅读次数:
324
方法1.go to the Product menu and find the Edit
Scheme menu there.While in Edit Scheme window, select the "Run" option on the
left hand side of the scree...
分类:
其他好文 时间:
2014-06-12 21:03:42
阅读次数:
317
/*有工艺路线,无BOM清单*/select msi.segment1,
msi.descriptionfrom apps.BOM_OPERATIONAL_ROUTINGS bor,apps.mtl_system_items_b
msiwhere msi.organization_id=Y and ...
分类:
数据库 时间:
2014-06-12 17:42:54
阅读次数:
430
--查询表空间使用情况 SELECT UPPER(F.TABLESPACE_NAME) "表空间名",
D.TOT_GROOTTE_MB "表空间大小(M)", D.TOT_GROOTTE_MB - F.TOTAL_BYTES "已使用空间(M)",
TO_CHAR(ROUND((D.TO...
分类:
数据库 时间:
2014-06-12 16:17:11
阅读次数:
330
分页查询:SELECT * FROM (SELECT A.*, ROWNUM RN FROM
(SELECT * FROM TABLE_NAME) A WHERE ROWNUM = 21sql执行顺序: 1、from子句组装来自不同数据源的数据;
2、where子句基于指定的条件对记录行进行筛选.....
分类:
数据库 时间:
2014-06-12 15:48:44
阅读次数:
218
修改表数据先给class表增加几行数据以便操作mysql>insertintoclassmysql>(sname,gender,company,fanbu)mysql>valuesmysql>(‘xiaoxiao‘,‘男‘,‘腾讯‘,200),mysql>(‘xiaoqing‘,‘女‘,‘百度‘,300);mysql>select*fromclass;修改数据将xiaoxiao的fanbu数据增加200my..
分类:
数据库 时间:
2014-06-10 23:23:21
阅读次数:
276
内存管理–SQLServer2005/2008/2008r2SQLServer2012以前的版本(SQL2005/2008/2008R2),有singlepageallocator和multipageallocator。也就是说,如果申请的内存是8k以内的,就会有单页分配器分配,而大于8kb的内存请求,使用multipage分配器来管理。如图所示。使用select*fro..
分类:
数据库 时间:
2014-06-10 22:38:09
阅读次数:
363