Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : Oracle

OracleÖ´ÐÐSQLÓï¾äµÄ¹ý³Ì

µ±ÎÒÃÇÌá½»Ò»ÌõsqlÓï¾äʱ£¬oracle»á×öÄÄЩ²Ù×÷ÄØ£¿
Oracle»áΪÿ¸öÓû§½ø³Ì·ÖÅäÒ»¸ö·þÎñÆ÷½ø³Ì£ºservice process£¨Êµ¼ÊÇé¿öÓ¦¸ÃÇø·ÖרÓ÷þÎñÆ÷ºÍ¹²Ïí·þÎñÆ÷£©£¬µ±service process½ÓÊÕµ½Óû§½ø³ÌÌá½»µÄsqlÓï¾äʱ£¬·þÎñÆ÷½ø³Ì»á¶ÔsqlÓï¾ä½øÐÐÓï·¨ºÍ´Ê·¨·ÖÎö¡£
Ãû´Ê½âÊÍ£º
Óï·¨·ÖÎö£ºÓï¾ä±¾ÉíÕýÈ·ÐÔ¡£
´Ê·¨·ÖÎö£º¶ÔÕÕÊý¾Ý×ÖµäÖмì²é±í£¬Ë÷Òý£¬ÊÓͼºÍÓû§È¨ÏÞ¡£
¼ì²éͨ¹ýºó£¬·þÎñÆ÷½ø³Ì»á½«sqlÓï¾äת±äΪasciiÂ룬²¢Í¨¹ýÒ»¸öhashº¯Êý½«asciiÂëÉú³É³öÒ»¸öhashÖµ£¬·þÎñÆ÷½ø³Ì»áµ½share poolÖвéѯ´ËhashÊÇ·ñ´æÔÚ£¬Èç¹û´æÔÚ£¬·þÎñÆ÷½ø³Ì»á´ÓsharepoolÖжÁÈ¡ÒѾ­½âÎöºÃµÄÓï¾äÀ´Ö´ÐУ»Èç¹û²»´æÔÚ£¬ÔòÐèÒª×öÒÔϲ½Ö裺Éú³ÉÖ´Ðмƻ®ºÍÉú³ÉÖ´ÐбàÂ루ÇëÀí½âºÎΪִÐмƻ®£©¡£½âÎöÍê³Éºó£¬Oracle»á½«sqlÓï¾ä±¾Éí´úÂë¡¢hashÖµ¡¢±àÒë´úÂë¡¢Ö´Ðмƻ®ºÍËùÓÐÓë¸ÃÓï¾äÏà¹ØµÄͳ¼ÆÊý¾Ý´æ·Åµ½sharepoolÖС£
×¢Ò⣺
1 ¾¡Á¿Ð´ÏàͬµÄsqlÓï¾ä£¬ÒòΪ¼´Ê¹ÊÇfromÓï¾äÖÐtable˳ÐòµÄ±ä»¯¡¢²éѯ×Ö¶ÎλÖõı仯£¬ÉõÖÁÖ»ÊÇ´óСдµÄ²»Í¬£¬¶¼»á´ÙʹoracleÖØÐÂ×öÒ»´ÎÓ²½âÎö¡£
2 Ôö´óshare_pool_size¿ÉÒÔ±£Áô¸ü¶àµÄ»º´æÔÚÄÚ´æÖеÄsqlÓï¾äÖ´Ðмƻ®£¬Ò²Òâζ׏²ÏísqlµÄ¿ÉÄÜÐÔµÄÔö´ó¡£
ÔÚÉú³É±àÒë´úÂëºó£ ......

OracleÖ´ÐÐSQLÓï¾äµÄ¹ý³Ì

µ±ÎÒÃÇÌá½»Ò»ÌõsqlÓï¾äʱ£¬oracle»á×öÄÄЩ²Ù×÷ÄØ£¿
Oracle»áΪÿ¸öÓû§½ø³Ì·ÖÅäÒ»¸ö·þÎñÆ÷½ø³Ì£ºservice process£¨Êµ¼ÊÇé¿öÓ¦¸ÃÇø·ÖרÓ÷þÎñÆ÷ºÍ¹²Ïí·þÎñÆ÷£©£¬µ±service process½ÓÊÕµ½Óû§½ø³ÌÌá½»µÄsqlÓï¾äʱ£¬·þÎñÆ÷½ø³Ì»á¶ÔsqlÓï¾ä½øÐÐÓï·¨ºÍ´Ê·¨·ÖÎö¡£
Ãû´Ê½âÊÍ£º
Óï·¨·ÖÎö£ºÓï¾ä±¾ÉíÕýÈ·ÐÔ¡£
´Ê·¨·ÖÎö£º¶ÔÕÕÊý¾Ý×ÖµäÖмì²é±í£¬Ë÷Òý£¬ÊÓͼºÍÓû§È¨ÏÞ¡£
¼ì²éͨ¹ýºó£¬·þÎñÆ÷½ø³Ì»á½«sqlÓï¾äת±äΪasciiÂ룬²¢Í¨¹ýÒ»¸öhashº¯Êý½«asciiÂëÉú³É³öÒ»¸öhashÖµ£¬·þÎñÆ÷½ø³Ì»áµ½share poolÖвéѯ´ËhashÊÇ·ñ´æÔÚ£¬Èç¹û´æÔÚ£¬·þÎñÆ÷½ø³Ì»á´ÓsharepoolÖжÁÈ¡ÒѾ­½âÎöºÃµÄÓï¾äÀ´Ö´ÐУ»Èç¹û²»´æÔÚ£¬ÔòÐèÒª×öÒÔϲ½Ö裺Éú³ÉÖ´Ðмƻ®ºÍÉú³ÉÖ´ÐбàÂ루ÇëÀí½âºÎΪִÐмƻ®£©¡£½âÎöÍê³Éºó£¬Oracle»á½«sqlÓï¾ä±¾Éí´úÂë¡¢hashÖµ¡¢±àÒë´úÂë¡¢Ö´Ðмƻ®ºÍËùÓÐÓë¸ÃÓï¾äÏà¹ØµÄͳ¼ÆÊý¾Ý´æ·Åµ½sharepoolÖС£
×¢Ò⣺
1 ¾¡Á¿Ð´ÏàͬµÄsqlÓï¾ä£¬ÒòΪ¼´Ê¹ÊÇfromÓï¾äÖÐtable˳ÐòµÄ±ä»¯¡¢²éѯ×Ö¶ÎλÖõı仯£¬ÉõÖÁÖ»ÊÇ´óСдµÄ²»Í¬£¬¶¼»á´ÙʹoracleÖØÐÂ×öÒ»´ÎÓ²½âÎö¡£
2 Ôö´óshare_pool_size¿ÉÒÔ±£Áô¸ü¶àµÄ»º´æÔÚÄÚ´æÖеÄsqlÓï¾äÖ´Ðмƻ®£¬Ò²Òâζ׏²ÏísqlµÄ¿ÉÄÜÐÔµÄÔö´ó¡£
ÔÚÉú³É±àÒë´úÂëºó£ ......

С²¼×÷Æ·£ºOracle 11g SQL»ù´¡ÈëÃÅϵÁÐÅàѵ(È«30½²)

==============================================
 
µÚ01½²: Chapter 00--Oracle 11g SQL Fundamentals Training Introduction
ÔÚÏß¹Û¿´£º http://www.boobooke.com/v/bbk2003
ÊÓƵÏÂÔØ£º http://www.boobooke.com/v/bbk2003.zip
 
µÚ02½²: Chapter 00--Oracle 11g SQL Fundamentals Training Introduction
ÔÚÏß¹Û¿´£º http://www.boobooke.com/v/bbk2004
ÊÓƵÏÂÔØ£º http://www.boobooke.com/v/bbk2004.zip
 
µÚ03½²: Chapter 01--Restricting Data Using the SQL SELECT Statement
ÔÚÏß¹Û¿´£º http://www.boobooke.com/v/bbk2005
ÊÓƵÏÂÔØ£º http://www.boobooke.com/v/bbk2005.zip
 
µÚ04½²: Chapter 01--Restricting Data Using the SQL SELECT Statement
ÔÚÏß¹Û¿´£º http://www.boobooke.com/v/bbk2006
ÊÓƵÏÂÔØ£º http://www.boobooke.com/v/bbk2006.zip
 
µÚ05½²: Chapter 02--Restricting and Sorting Data
ÔÚÏß¹Û¿´£º http://www.boobooke.com/v/bbk2008
ÊÓƵÏÂÔØ£º http://www.boobooke.com/v/bbk2008.zip
 
µÚ06½²: Chapter 02--Restricting and Sorting Data
ÔÚÏß¹Û¿´£º http://www.boobooke.com/v/bbk20 ......

С²¼×÷Æ·£ºOracle 11g SQL»ù´¡ÈëÃÅϵÁÐÅàѵ(È«30½²)

==============================================
 
µÚ01½²: Chapter 00--Oracle 11g SQL Fundamentals Training Introduction
ÔÚÏß¹Û¿´£º http://www.boobooke.com/v/bbk2003
ÊÓƵÏÂÔØ£º http://www.boobooke.com/v/bbk2003.zip
 
µÚ02½²: Chapter 00--Oracle 11g SQL Fundamentals Training Introduction
ÔÚÏß¹Û¿´£º http://www.boobooke.com/v/bbk2004
ÊÓƵÏÂÔØ£º http://www.boobooke.com/v/bbk2004.zip
 
µÚ03½²: Chapter 01--Restricting Data Using the SQL SELECT Statement
ÔÚÏß¹Û¿´£º http://www.boobooke.com/v/bbk2005
ÊÓƵÏÂÔØ£º http://www.boobooke.com/v/bbk2005.zip
 
µÚ04½²: Chapter 01--Restricting Data Using the SQL SELECT Statement
ÔÚÏß¹Û¿´£º http://www.boobooke.com/v/bbk2006
ÊÓƵÏÂÔØ£º http://www.boobooke.com/v/bbk2006.zip
 
µÚ05½²: Chapter 02--Restricting and Sorting Data
ÔÚÏß¹Û¿´£º http://www.boobooke.com/v/bbk2008
ÊÓƵÏÂÔØ£º http://www.boobooke.com/v/bbk2008.zip
 
µÚ06½²: Chapter 02--Restricting and Sorting Data
ÔÚÏß¹Û¿´£º http://www.boobooke.com/v/bbk20 ......

ORACLE³£ÓÃSQL

Ò».ORACLE³£Óñí
1.dual     ORACLEÓÃÀ´¸øûÓбíµÄÔËËã·û.Èç:select sysdate from dual;
¶þ.×Ö·û´®²Ù×÷
1.||  ×Ö·û´®¼Ó·¨  select 'a'||'bc' from dual;      --'abc'
Èý.ʱ¼äºÍÈÕÆÚ
1.sysdate     ϵͳµ±Ç°µÄÈÕÆÚ
           sysdate-1  ¼õÉÙÒ»Ìì;sysdate+1 Ôö¼ÓÒ»Ìì;sysdate -1/24 ¼õÉÙһСʱ; sysdate+1/24 Ôö¼ÓһСʱ;sysdate-1/24/60 ¼õÉÙÒ»·ÖÖÓ;sysdate-1/24/60/60  ¼õÉÙÒ»Ãë
          
2.add_months(sysdate,2)   Ôö¼Ó¶þ¸öÔÂ;  add_months(sysdate,-2) ¼õÉÙÁ½¸öÔÂ;
3.×Ö·ûÓëʱ¼äת»»
to_char(sysdate+7,'yyyy-mm-dd HH24:MI:SS')     ÈÕÆÚת×Ö·û´®
to_date(×Ö·û´®,ʱ¼ä¸ñʽ)   ×Ö·û´®×ªÊ±¼ä
ËÄ.³£Óú¯Êý
1.nvl(a,b)     Èç¹ûaΪ¿ÕÔòÓÃbÖµ,·ñÔòÓÃaÖµ.bµÄÀàÐÍ¿ÉÒÔÓëaµÄÀàÐͲ»Ò»Ñù. ......

ORACLE³£ÓÃSQL

񡜧
¡¡¡¡select * from cat;
¡¡¡¡select * from tab;
¡¡¡¡select table_name from user_tables;
ÊÓͼ£º
¡¡¡¡select text from user_views where view_name=upper('&view_name');
Ë÷Òý£º
¡¡¡¡select index_name,table_owner,table_name,tablespace_name,status from user_indexes order by table_name;
´¥·¢Æ÷£º
¡¡¡¡select trigger_name,trigger_type,table_owner,table_name,status from user_triggers;
¿ìÕÕ£º
¡¡¡¡select owner,name,master,table_name,last_refresh,next from user_snapshots order by owner,next;
ͬÒå´Ê£º
¡¡¡¡select * from syn;
ÐòÁУº
¡¡¡¡select * from seq;
Êý¾Ý¿âÁ´Â·£º
¡¡¡¡select * from user_db_links;
Ô¼ÊøÏÞÖÆ£º
¡¡¡¡select TABLE_NAME,CONSTRAINT_NAME,SEARCH_CONDITION,STATUS
    from user_constraints WHERE TABLE_name=upper('&TABLE_Name');
±¾Óû§¶ÁÈ¡ÆäËûÓû§¶ÔÏóµÄȨÏÞ£º
¡¡¡¡select * from user_tab_privs;
±¾Óû§ËùÓµÓеÄϵͳȨÏÞ£º
¡¡¡¡select * from user_sys_privs;
Óû§£º
¡¡¡¡select * from all_users order by user_id;
±í¿Õ¼äÊ£Óà×ÔÓÉ¿Õ¼ ......

ORACLEºÍSQLÓï·¨Çø±ð¹éÄÉ

¹Ø¼ü×Ö: oracle & sql server
Êý¾ÝÀàÐͱȽÏ
ÀàÐÍÃû³Æ
Oracle
SQLServer
±È½Ï
×Ö·ûÊý¾ÝÀàÐÍ CHAR CHAR ¶¼Êǹ̶¨³¤¶È×Ö·û×ÊÁϵ«oracleÀïÃæ×î´ó¶ÈΪ2kb£¬SQLServerÀïÃæ×î´ó³¤¶ÈΪ8kb
±ä³¤×Ö·ûÊý¾ÝÀàÐÍ VARCHAR2 VARCHAR OracleÀïÃæ×î´ó³¤¶ÈΪ4kb£¬SQLServerÀïÃæ×î´ó³¤¶ÈΪ8kb
¸ù¾Ý×Ö·û¼¯¶ø¶¨µÄ¹Ì¶¨³¤¶È×Ö·û´® NCHAR NCHAR Ç°Õß×î´ó³¤¶È2kbºóÕß×î´ó³¤¶È4kb
¸ù¾Ý×Ö·û¼¯¶ø¶¨µÄ¿É±ä³¤¶È×Ö·û´® NVARCHAR2 NVARCHAR ¶þÕß×î´ó³¤¶È¶¼Îª4kb
ÈÕÆÚºÍʱ¼äÊý¾ÝÀàÐÍ DATE ÓÐDatetimeºÍSmalldatetimeÁ½ÖÖ ÔÚoracleÀïÃæ¸ñʽΪDMYÔÚSQLSerserÀïÃæ¿ÉÒÔµ÷½Ú£¬Ä¬ÈϵÄΪMDY
Êý×ÖÀàÐÍ NUMBER(P,S) NUMERIC[P(,S)] OracleÀïÃæp´ú±íСÊýµã×óÃæµÄλÊý£¬s´ú±íСÊýµãÓÒÃæµÄλÊý¡£¶øSQLServerÀïÃæp´ú±íСÊýµã×óÓÒÁ½ÃæµÄλÊýÖ®ºÍ£¬s´ú±íСÊýµãÓÒÃæµÄλÊý¡£
Êý×ÖÀàÐÍ DECIMAL(P,S) DECIMAL[P(,S)] OracleÀïÃæp´ú±íСÊýµã×óÃæµÄλÊý£¬s´ú±íСÊýµãÓÒÃæµÄλÊý¡£¶øSQLServerÀïÃæp´ú±íСÊýµã×óÓÒÁ½ÃæµÄλÊýÖ®ºÍ£¬s´ú±íСÊýµãÓÒÃæµÄλÊý¡£
ÕûÊýÀàÐÍ INTEGER INT ͬΪÕûÊýÀàÐÍ£¬´æ´¢´óС¶¼Îª4¸ö×Ö½Ú
¸¡µãÊýÀàÐÍ FLOAT FLOAT
ʵÊýÀàÐÍ REAL REAL
ORACLEÄÚ²¿º¯Êý´óÈ«ÒÔ¼°ÓëSQLSERVER ......

ORACLEºÍSQLÓï·¨Çø±ð¹éÄÉ

¹Ø¼ü×Ö: oracle & sql server
Êý¾ÝÀàÐͱȽÏ
ÀàÐÍÃû³Æ
Oracle
SQLServer
±È½Ï
×Ö·ûÊý¾ÝÀàÐÍ CHAR CHAR ¶¼Êǹ̶¨³¤¶È×Ö·û×ÊÁϵ«oracleÀïÃæ×î´ó¶ÈΪ2kb£¬SQLServerÀïÃæ×î´ó³¤¶ÈΪ8kb
±ä³¤×Ö·ûÊý¾ÝÀàÐÍ VARCHAR2 VARCHAR OracleÀïÃæ×î´ó³¤¶ÈΪ4kb£¬SQLServerÀïÃæ×î´ó³¤¶ÈΪ8kb
¸ù¾Ý×Ö·û¼¯¶ø¶¨µÄ¹Ì¶¨³¤¶È×Ö·û´® NCHAR NCHAR Ç°Õß×î´ó³¤¶È2kbºóÕß×î´ó³¤¶È4kb
¸ù¾Ý×Ö·û¼¯¶ø¶¨µÄ¿É±ä³¤¶È×Ö·û´® NVARCHAR2 NVARCHAR ¶þÕß×î´ó³¤¶È¶¼Îª4kb
ÈÕÆÚºÍʱ¼äÊý¾ÝÀàÐÍ DATE ÓÐDatetimeºÍSmalldatetimeÁ½ÖÖ ÔÚoracleÀïÃæ¸ñʽΪDMYÔÚSQLSerserÀïÃæ¿ÉÒÔµ÷½Ú£¬Ä¬ÈϵÄΪMDY
Êý×ÖÀàÐÍ NUMBER(P,S) NUMERIC[P(,S)] OracleÀïÃæp´ú±íСÊýµã×óÃæµÄλÊý£¬s´ú±íСÊýµãÓÒÃæµÄλÊý¡£¶øSQLServerÀïÃæp´ú±íСÊýµã×óÓÒÁ½ÃæµÄλÊýÖ®ºÍ£¬s´ú±íСÊýµãÓÒÃæµÄλÊý¡£
Êý×ÖÀàÐÍ DECIMAL(P,S) DECIMAL[P(,S)] OracleÀïÃæp´ú±íСÊýµã×óÃæµÄλÊý£¬s´ú±íСÊýµãÓÒÃæµÄλÊý¡£¶øSQLServerÀïÃæp´ú±íСÊýµã×óÓÒÁ½ÃæµÄλÊýÖ®ºÍ£¬s´ú±íСÊýµãÓÒÃæµÄλÊý¡£
ÕûÊýÀàÐÍ INTEGER INT ͬΪÕûÊýÀàÐÍ£¬´æ´¢´óС¶¼Îª4¸ö×Ö½Ú
¸¡µãÊýÀàÐÍ FLOAT FLOAT
ʵÊýÀàÐÍ REAL REAL
ORACLEÄÚ²¿º¯Êý´óÈ«ÒÔ¼°ÓëSQLSERVER ......

³£ÓõÄORACLE PL/SQL¹ÜÀíÃüÁîÒ»

Ô­ÎÄ£ºÁõÎä| ³£ÓõÄORACLE PL/SQL¹ÜÀíÃüÁîÒ»
ÊìϤORACLE¹ÜÀíµÄÒ»¶¨¶ÔÕâЩÃüÁî²»»áÄ°Éú£¬²»¹ý¶ÔÓÚÎÒÕâ¸ö¸Õ½Ó´¥ORACLE¹ÜÀíµÄÀ´Ëµ£¬»¹ÊÇÓбØÒª×öϼǼ£¬ÒÔ±ãËæʱ²é¿´¡£
Ò» µÇ¼SQLPLUS
sqlplus Óû§Ãû/ÃÜÂë@Êý¾Ý¿âʵÀý as µÇ¼½ÇÉ«;
Èç:Óû§sys(ÃÜÂëΪ123)ÒÔsysdbaµÄ½ÇÉ«µÇ¼Êý¾Ý¿âORACL£¬ÎÒÃÇ¿ÉÒÔÊäÈ룺sqlplus sys/123@oracl as sysdba;
ÕâÖֵǼ·½Ê½»áÖ±½Ó±©Â¶ÃÜÂ룬Èç¹ûÏëÒþ²ØÃÜÂ룬¿ÉÒÔÔÚ´ËÊ¡ÂÔÃÜÂëµÄÊäÈ룬È磺sqlplus sys@oracl as sysdba;»Ø³µÒÔºóORACLE»á¸ø³öÊäÈëÃÜÂëµÄÌáʾ·û¡£
µÇ¼ÒÔºóÈç¹ûÏëÇл»ÆäËûµÄÓû§£¬¿ÉÒÔÖ±½ÓʹÓÃconnect ÃüÁî,È磺connect user2/password@oracl as sysdba,ͬÉÏÒ»Ñù£¬¿ÉÒÔ½«ÃÜÂë·Ö¿ªÊäÈë¡£
¶þ Í˳öSQLPLUS
quit£»
Èý ´´½¨Óû§
create user Óû§Ãû identified by ÃÜÂë;
È磺´´½¨Óû§CKSP£¬ÃÜÂëΪ123: create user cksp identified by 123;
ËÄ ¸øÓû§·ÖÅä½ÇÉ«»òȨÏÞ
grant *** to ***;
È磺¸ø¸Õ²ÅµÄÓû§·ÖÅä½ÇÉ«DBA:grant dba to cksp;
·ÖÅäcreate table ȨÏÞ£ºgrant
Îå ɾ³ýÓû§
drop user Óû§ [cascade];
ÆäÖÐcascadeÊÇ¿ÉÑ¡µÄ£¬Èç¹ûÊäÈëÁË£¬Ôò±íʾɾ³ý¸ÃÓû§¼°ËùÓÐÊý¾Ý¡£
È磺ɾ³ýÉÏÃæ´´½¨µÄÓû§CKSP¼°ËûµÄËùÓÐÊ ......

³£ÓõÄORACLE PL/SQL¹ÜÀíÃüÁîÒ»

Ô­ÎÄ£ºÁõÎä| ³£ÓõÄORACLE PL/SQL¹ÜÀíÃüÁîÒ»
ÊìϤORACLE¹ÜÀíµÄÒ»¶¨¶ÔÕâЩÃüÁî²»»áÄ°Éú£¬²»¹ý¶ÔÓÚÎÒÕâ¸ö¸Õ½Ó´¥ORACLE¹ÜÀíµÄÀ´Ëµ£¬»¹ÊÇÓбØÒª×öϼǼ£¬ÒÔ±ãËæʱ²é¿´¡£
Ò» µÇ¼SQLPLUS
sqlplus Óû§Ãû/ÃÜÂë@Êý¾Ý¿âʵÀý as µÇ¼½ÇÉ«;
Èç:Óû§sys(ÃÜÂëΪ123)ÒÔsysdbaµÄ½ÇÉ«µÇ¼Êý¾Ý¿âORACL£¬ÎÒÃÇ¿ÉÒÔÊäÈ룺sqlplus sys/123@oracl as sysdba;
ÕâÖֵǼ·½Ê½»áÖ±½Ó±©Â¶ÃÜÂ룬Èç¹ûÏëÒþ²ØÃÜÂ룬¿ÉÒÔÔÚ´ËÊ¡ÂÔÃÜÂëµÄÊäÈ룬È磺sqlplus sys@oracl as sysdba;»Ø³µÒÔºóORACLE»á¸ø³öÊäÈëÃÜÂëµÄÌáʾ·û¡£
µÇ¼ÒÔºóÈç¹ûÏëÇл»ÆäËûµÄÓû§£¬¿ÉÒÔÖ±½ÓʹÓÃconnect ÃüÁî,È磺connect user2/password@oracl as sysdba,ͬÉÏÒ»Ñù£¬¿ÉÒÔ½«ÃÜÂë·Ö¿ªÊäÈë¡£
¶þ Í˳öSQLPLUS
quit£»
Èý ´´½¨Óû§
create user Óû§Ãû identified by ÃÜÂë;
È磺´´½¨Óû§CKSP£¬ÃÜÂëΪ123: create user cksp identified by 123;
ËÄ ¸øÓû§·ÖÅä½ÇÉ«»òȨÏÞ
grant *** to ***;
È磺¸ø¸Õ²ÅµÄÓû§·ÖÅä½ÇÉ«DBA:grant dba to cksp;
·ÖÅäcreate table ȨÏÞ£ºgrant
Îå ɾ³ýÓû§
drop user Óû§ [cascade];
ÆäÖÐcascadeÊÇ¿ÉÑ¡µÄ£¬Èç¹ûÊäÈëÁË£¬Ôò±íʾɾ³ý¸ÃÓû§¼°ËùÓÐÊý¾Ý¡£
È磺ɾ³ýÉÏÃæ´´½¨µÄÓû§CKSP¼°ËûµÄËùÓÐÊ ......
×ܼǼÊý:3994; ×ÜÒ³Êý:666; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [657] [658] [659] [660] [661] [662] [663] [664] 665 [666]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ