The Three Unix File Time :atime, mtime, ctime (转自:Unix Power Tools 3rd ed.)
The difference between a change and a modification is the difference between altering the label on a package and altering its contents.If someon says chmod a-w myfile, that is a change; if someone say...
SQL Server 2005:模拟Oracle的desc命令编写的describe,查询表的结构
create proc [dbo].[describe]@table_name Nvarchar(100)asselect c.name as column_name,case t.namewhen 'numeric' then t.name+'('+cast(c.precision as varchar(5))+','+cast(c.scale as varchar(5))+')'when 'char' then t.name+'('+cast(c.max_length as varchar(5))+')'when 'varchar' then t.name+'('+cast(c.max_length as varchar(5))+')'when 'nvarchar' then t.name+'('+cast(c.max_length as varchar(5))+')'else t.nameend as type,case c.is_nullable when 1 then ' ' else 'NOT NULL' end as nul
模拟Oracle的desc命令编写的describe,查询表的结构
CREATE proc describe@table_name Nvarchar(100)asselect c.name as column_name, case t.namewhen 'numeric' then t.name+'('+cast(c.precision as varchar(5))+','+cast(c.scale as varchar(5))...
Gartener发布的2006年全球数据库市场份额
Worldwide Vendor Revenue Estimates from RDBMS Software, Based on Total Software Revenue, 2006 (Millions of Dollars)Company20062006 Market Share (%)20052005 Market Share (%)2005-2006 Growth (%)Oracle7,...
Oracle Database 11g在7月11日发布
不是我不明白,这世界变化快http://www.oracle.com/corporate/press/2007_jul/database-11g.html
SQL Server中创建存储过程时,with recompoile的作用
每次执行存储过程时,对于其中的查询,SQL Server默认会使用原来的执行计划,附加with recompile之后,每次执行这个存储过程时都重新编译,即重新生成执行计划。同时注意,存储过程的编译结果就是生成执行计划,而不...
Objectives of the Relational Model
To provide a high degree of data independence.To provide a community view of the data of spartan(严格的) simplicity, so that a wide variety of users in an enterrprise, ranging from the most computer-...
有出息靠啥?
一命二运三风水,四积功德五读书。六名七相八敬神,九交贵人十养生
SQL Server 触发器中的两个临时表inserted及deleted,其数据从何而来?
在SQL Server 2005中,其数据由tempdb数据库中的version store数据得来,而在SQL Server 2000中,其数据由事务日志文件得来。
SQL Server 2005中的UDF(用户定义函数)
关于UDF:UDF根据其返回的类型可以分为标量函数及表值函数UDF可以嵌入在查询、约束以及计算列中。UDF不能使用临时表。UDF不能使用动态执行(dynamic execution)。UDF不能修改表中的数据。对于标量UDF(Scalar UDF):必...
列出文件的inode信息
stat filename [root@redhat ~]# stat test.acm File: `test.acm' Size: 22 Blocks: 16 IO Block: 4096 regular fileDevice: 801h/2049d Inode: 130649 Links: 1Access: (0711/-...
删除重复记录(zt)
总结了一下删除重复记录的方法,以及每种方法的优缺点。假设表名为Tbl,表中有三列col1,col2,col3,其中col1,col2是主键,并且,col1,col2上加了索引。1、通过创建临时表可以把数据先导入到一个临时表中,然后删...
在SQL Server 2005数据库中设置read committed snapshot隔离级别
把read_committed_snapshot 选项打开:alter database law set read_committed_snapshot on当数据库处于read committed隔离级别时,与Oracle数据库中的效果相同,这时,update操作的旧数据会保存在tempdb中称为versi...
SQL Server 2005中的tempdb数据库的一些特点
服务器重启时,tempdb会重建,其中创建的任何对象会丢失,因此此数据库也不用备份。tempdb数据库使用simple恢复模式。tempdb数据库的操作也会产生redo log,但是其数据量只能rollback一个事务,例如,对于update操作...
查询SQL Server 2005数据库重做日志的信息
dbcc loginfo:不用加参数,可以查询每个VLF的信息,status为2表示active或者recovery,为0表示可以重用或者未使用。dbcc sqlperf('logspace'):可以查询当前数据库中每个日志文件的大小和使用量的百分比。...
一些SQL问题
以下除特别说明都针对Oracle中的scott用户的emp表、dept表、salgrade表1. 查询emp表中每个员工的ename、sal、及其与所在部门的平均sal的差距。2. (1) 利用emp表及salgrade表,确定每个员工的sal级别。 (2) 统计emp...
IN & NOT IN & EXISTS & NOT EXISTS & TABLE JION
当子查询有返回null值时,not in不会有结果返回,如:SQL> select ename from emp where deptno not in(10,20,null)2 /no rows selected原因是:deptno not in(10, 20, null) ===>not (deptno in(10, 20, null)) ===...
linux启动级别
0 — Halt1 — Single-user mode2 — Multiuser mode, without networking3 — Full multiuser mode4 — Not used5 — Full multiuser mode (with an X-based login screen)6 — Reboot
RHEL43上启动telnet
修改/etc/xinetd.d/xinetd.d/krb5-telnet,把其中的disable改为no,然后关闭防火墙:service iptables stop
索引节点导出的块头信息解释
rdba - relative database block address of the branch block (file no/block no)scn – system change number of the block when last changedseq – number of block changestype – block typeseg/obj – object...