»Ö¸´oracleÖÐÓÃpl sqlÎóɾ³ýdropµôµÄ±í
²é¿´»ØÊÕÕ¾Öбí
select object_name,original_name,partition_name,type,ts_name,createtime,droptime from recyclebin;
»Ö¸´±í
SQL
>flashback table test_drop to before drop;»ò
SQL
>flashback table "BIN$b+XkkO1RS5K10uKo9BfmuA==$0" to before drop;
×¢£º±ØÐë9i»ò10gÒÔÉÏ°æ±¾Ö§³Ö£¬flashbackÎÞ·¨»Ö¸´È«ÎÄË÷Òý
ÒÔÏÂΪ²Î¿¼×ÊÁÏ
ʹÓà Oracle Database 10g ÖеÄÉÁ»Ø±íÌØÐÔ£¬¿ÉÒÔºÁ²»·ÑÁ¦µØ»Ö¸´±»ÒâÍâɾ³ýµÄ±í
¡¡¡¡ÒÔÏÂÊÇÒ»¸ö²»¸Ã·¢ÉúÈ´¾³£·¢ÉúµÄÇé¿ö£ºÓû§É¾³ýÁËÒ»¸ö·Ç³£ÖØÒªµÄ±í ¨D µ±È»ÊÇÒâÍâµØɾ³ý ¨D ²¢ÐèÒª¾¡¿ìµØ»Ö¸´¡££¨ÔÚijЩʱºò£¬Õâ¸ö²»ÐÒµÄÓû§¿ÉÄܾÍÊÇ DBA£¡£©
¡¡¡¡Oracle9i Database ÍƳöÁËÉÁ»Ø²éѯѡÏîµÄ¸ÅÄÒÔ±ã¼ìË÷¹ýȥij¸öʱ¼äµãµÄÊý¾Ý£¬µ«Ëü²»ÄÜÉÁ»Ø DDL
²Ù×÷£¬Èçɾ³ý±íµÄ²Ù×÷¡£Î¨Ò»µÄ»Ö¸´·½·¨ÊÇÔÚÁíÒ»¸öÊý¾Ý¿âÖÐʹÓñí¿Õ¼äµÄʱ¼äµã»Ö¸´£¬È»ºóʹÓõ¼³ö/µ¼Èë»òÆäËû·½·¨£¬ÔÚµ±Ç°Êý¾Ý¿âÖÐÖØд´½¨±í¡£ÕâÒ»¹ý³ÌÐè
Òª DBA ½øÐдóÁ¿¹¤×÷²¢ÇҺķѱ¦¹óµÄʱ¼ä£¬¸ü²»ÓÃ˵»¹ÒªÊ¹ÓÃÁíÒ»¸öÊý¾Ý¿â½øÐпË¡¡£
¡¡¡¡ÇëʹÓà Oracle Database 10g ÖеÄÉÁ»Ø±íÌØÐÔ£¬ËüʹµÃ±»É¾³ý±íµÄ»Ö¸´¹ý³ÌÈçִͬÐм¸ÌõÓï¾äÒ»Ñù¼òµ¥¡£ÈÃÎÒÃÇÀ´¿´¸ÃÌØÐÔÊÇÈçºÎ¹¤×÷µÄ¡£
¡¡¡¡É¾³ýÄǸö±í£¡
¡¡¡¡Ê×ÏÈ£¬ÈÃÎÒÃDz鿴µ±Ç°Ä£Ê½ÖÐµÄ±í¡£
¡¡¡¡SQL
> select * from tab;
¡¡¡¡TNAME
¡¡¡¡TABTYPE
¡¡¡¡CLUSTERID
¡¡¡¡---------------------
- --
-- ---
------
¡¡¡¡RECYCLETEST
¡¡¡¡TABLE
¡¡¡¡ÏÖÔÚ£¬ÎÒÃÇÒâÍâµØɾ³ýÁË¸Ã±í£º
¡¡¡¡SQL
> drop table recycletest;
¡¡¡¡Table dropped.
¡¡¡¡ÏÖÔÚÈÃÎÒÃÇÀ´²é¿´¸Ã±íµÄ״̬¡£
¡¡¡¡SQL
> select * from tab;
¡¡¡¡TNAME
¡¡¡¡TABTYPE
¡¡¡¡CLUSTERID
¡¡¡¡---------------------------
- --
-- ---
------
¡¡¡¡BIN$04LhcpndanfgMAAAAAANPw==$0 TABLE
¡¡¡¡±í RECYCLETEST ÒѲ»´æÔÚ£¬µ«ÊÇÇë×¢Òâ³öÏÖбí
BIN$04LhcpndanfgMAAAAAANPw==$0¡£Õâ¾ÍÊÇËù·¢ÉúµÄÊÂÇ飺±»É¾³ýµÄ±í RECYCLETEST
²¢Ã»ÓÐÍêÈ«Ïûʧ£¬¶øÊÇÖØÃüÃûΪһ¸öÓÉϵͳ¶¨ÒåµÄÃû³Æ¡£Ëü´æÔÚÓÚͬһ¸ö±í¿Õ¼äÖУ¬¾ßÓÐÓëÔʼ±íÏàͬµÄ½á¹¹¡£Èç¹ûÔڸñíÉ϶¨ÒåÁËË÷Òý»ò´¥·¢Æ÷£¬ÔòËüÃÇÒ²±»ÖØÃü
Ãû£¬Ê¹ÓÃÓë±íÏàͬµÄÃüÃû¹æÔò¡£ÈκÎÏà¹ØÔ´£¨Èç¹ý³Ì£©¶¼Ê§Ð§£»Ôʼ±íµÄ´¥·¢Æ÷ºÍË÷Òý±»¸ÄΪ·ÅÖÃÔÚÖØÃüÃûµÄ±í
BIN$04LhcpndanfgMAAAAAANPw==$0 ÉÏ£¬±£³Ö±»É¾³ý±íµÄÍêÕû¶ÔÏ
Ïà¹ØÎĵµ£º
The following are number examples for the to_char
function.
to_char
(1210.73,
'9999.9')
would return '1210.7'
to_char
(1210.73,
'9,999.99')
would return '1,210.73'
to_char
(1210.73,
'$9,999.00')
would return
'$1,210.73'
to_char
(21,
'000099')
would return '000021'
The foll ......
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;
mso-font-charset:2;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:0 268435456 0 0 -2147483648 0;}
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 ......
oracleÓû§¹ÜÀí
  ......
»úÆ÷Çé¿ö
p4: 2.4
ÄÚ´æ: 1 G
os: windows 2003
Êý¾Ý¿â: ms sql server 2000
Ä¿µÄ: ²éѯÐÔÄܲâÊÔ,±È½ÏÁ½ÖÖ²éѯµÄÐÔÄÜ
SQL²éѯЧÂÊ step by step
-- setp 1.
-- ½¨±í
create table t_userinfo
(
userid int identity(1,1) primary key nonclustered,
nick varchar(50) not null default '',
classid int not nul ......
´ó¼Ò¶¼ÔÚÌÖÂÛ¹ØÓÚÊý¾Ý¿âÓÅ»¯·½ÃæµÄ¶«¶«£¬¸ÕºÃ²ÎÓ뿪·¢ÁËÒ»¸öÊý¾Ý²Ö¿â·½ÃæµÄÏîÄ¿£¬ÒÔϵÄÒ»µã¶«Î÷ËãÊÇÊý¾Ý¿âÓÅ»¯·½ÃæµÄѧϰ+ʵսµÄһЩÐĵÃÌå»áÁË£¬ÄóöÀ´´ó¼Ò¹²Ïí¡£»¶ÓÅúÆÀÖ¸Õý°¢£¡
SQLÓï¾ä£º
ÊǶÔÊý¾Ý¿â(Êý¾Ý)½øÐвÙ×÷µÄΩһ;¾¶£»
ÏûºÄÁË70%~90%µÄÊý¾Ý¿â×ÊÔ´£»¶ÀÁ¢ÓÚ³ÌÐòÉè¼ÆÂß¼£¬Ïà¶ÔÓÚ¶Ô³ÌÐòÔ´´úÂëµÄÓÅ»¯£¬¶ÔSQ ......