2006年03月24日
ORA-19815: WARNING: db_recovery_file_dest_size 100.00% used
[oracle@mar bdump]$ sqlplus /nolog...繼續閱讀
SQL*Plus: Release 10.1.0.2.0 - Production on Fri Mar 24
10:43:41 2006
Copyright (c) 1982, 2004, Oracle. All rights reserved.
2006年03月23日
2006年03月14日
truncate,delete,drop的異同點
來源:http://www.cnoug.org/viewthread.php?tid=15169&highlight=TRUNCATE&page=1
TRUNCATE,delete,drop的異同點
注意:這裡說的delete是指不帶where子句的delete語句
...繼續閱讀
TRUNCATE,delete,drop的異同點
注意:這裡說的delete是指不帶where子句的delete語句
2006年03月13日
2006年03月9日
2006年03月8日
mysql對應oracle的create功能
如不要copy資料的話,那就可以加上where的條件試
create table copy_oracle_test as select * from employees [where 1=2];
mysql 5.0以上測過ok
crearte table copy_mysql_test select * from employees [where 1=2] ;
...繼續閱讀
create table copy_oracle_test as select * from employees [where 1=2];
mysql 5.0以上測過ok
crearte table copy_mysql_test select * from employees [where 1=2] ;
2006年03月5日
oracle的case的語法
select count(*) total,
sum(decode(to_char(hire_date,'yyyy'),1995,1,0)) "1995",
sum(decode(to_char(hire_date,'yyyy'),1996,1,0)) "1996",
sum(decode(to_char(hire_date,'yyyy'),1997,1,0)) "1997",
sum(decode(to_char(hire_date,'yyyy'),1998,1,0)) "1998"
from employees;
select count(hire_date),
sum(case when to_char(hire_date,'yyyy')='1995' then 1 end ) as "1995",
sum(case when to_char(hire_date,'yyyy')='1996' then 1 end ) as "1996",
sum(case when to_char(hire_date,'yyyy')='1997' then 1 end ) as "1997",
sum(case when to_char(hire_date,'yyyy')='1998' then 1 end ) as "1998"
from employees
...繼續閱讀
sum(decode(to_char(hire_date,'yyyy'),1995,1,0)) "1995",
sum(decode(to_char(hire_date,'yyyy'),1996,1,0)) "1996",
sum(decode(to_char(hire_date,'yyyy'),1997,1,0)) "1997",
sum(decode(to_char(hire_date,'yyyy'),1998,1,0)) "1998"
from employees;
select count(hire_date),
sum(case when to_char(hire_date,'yyyy')='1995' then 1 end ) as "1995",
sum(case when to_char(hire_date,'yyyy')='1996' then 1 end ) as "1996",
sum(case when to_char(hire_date,'yyyy')='1997' then 1 end ) as "1997",
sum(case when to_char(hire_date,'yyyy')='1998' then 1 end ) as "1998"
from employees
...繼續閱讀