Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

SQLÓï¾äPART4

GRANT
Name
GRANT -- ¶¨Òå·ÃÎÊȨÏÞ
Synopsis GRANT { { SELECT | INSERT | UPDATE | DELETE | RULE | REFERENCES | TRIGGER }
    [,...] | ALL [ PRIVILEGES ] }
    ON [ TABLE ] tablename [, ...]
    TO { username | GROUP groupname | PUBLIC } [, ...] [ WITH GRANT OPTION ]
GRANT { { CREATE | TEMPORARY | TEMP } [,...] | ALL [ PRIVILEGES ] }
    ON DATABASE dbname [, ...]
    TO { username | GROUP groupname | PUBLIC } [, ...] [ WITH GRANT OPTION ]
GRANT { EXECUTE | ALL [ PRIVILEGES ] }
    ON FUNCTION funcname ([type, ...]) [, ...]
    TO { username | GROUP groupname | PUBLIC } [, ...] [ WITH GRANT OPTION ]
GRANT { USAGE | ALL [ PRIVILEGES ] }
    ON LANGUAGE langname [, ...]
    TO { username | GROUP groupname | PUBLIC } [, ...] [ WITH GRANT OPTION ]
GRANT { { CREATE | USAGE } [,...] | ALL [ PRIVILEGES ] }
    ON SCHEMA schemaname [, ...]
    TO { username | GROUP groupname | PUBLIC } [, ...] [ WITH GRANT OPTION ]
GRANT { CREATE | ALL [ PRIVILEGES ] }
    ON TABLESPACE tablespacename [, ...]
    TO { username | GROUP groupname | PUBLIC } [, ...] [ WITH GRANT OPTION ]
ÃèÊö
GRANT ÃüÁij¶ÔÏó£¨±í£¬ÊÓͼ£¬ÐòÁУ¬º¯Êý£¬¹ý³ÌÓïÑÔ£¬Ä£Ê½»òÕß±í¿Õ¼ä£© ÉϵÄÌض¨È¨ÏÞ¸øÓèÒ»¸öÓû§»òÕ߶à¸öÓû§»òÕßÒ»×éÓû§¡£ ÕâЩȨÏÞ½«Ôö¼Óµ½ÄÇЩÒѾ­¸³ÓèµÄȨÏÞÉÏ£¬Èç¹û´æÔÚÕâЩȨÏ޵Ļ°¡£
¼ü×Ö PUBLIC ±íʾ¸ÃȨÏÞÒª¸³ÓèËùÓÐÓû§, °üÀ¨ÄÇЩÒÔºó¿ÉÄÜ´´½¨µÄÓû§¡£PUBLIC ¿ÉÒÔ¿´×öÊÇÒ»¸öÒþº¬¶¨ÒåºÃµÄ×飬Ëü×ÜÊÇ°üÀ¨ËùÓÐÓû§¡£ ÈκÎÌض¨µÄÓû§¶¼½«ÓµÓÐÖ±½Ó¸³ÓèËû/ËýµÄȨÏÞ£¬¼ÓÉÏËû/ËýËù´¦µÄÈκÎ×飬 ÒÔ¼°ÔÙ¼ÓÉϸ³Óè PUBLIC µÄȨÏÞµÄ×ܺ͡£
Èç¹ûÉùÃ÷ÁË WITH GRANT OPTION£¬ÄÇôȨÏÞµÄÊÜÓèÕßÒ²¿ÉÒÔ¸³Óè±ðÈË¡£ ûÓÐÕâ¸öÑ¡Ï½ÓÊÜȨÏÞµÄÓû§²»Äܸø±ðÈËÊÚȨ²»ÔÊÐíµÄ¡£ Ä¿Ç°£¬¸³È¨Ñ¡ÏîÖ»Äܸø¶ÀÁ¢µÄÓû§£¬¶ø²»Äܸø×é»òÕß PUBLIC¡£
¶Ô¶ÔÏóµÄËùÓÐÕߣ¨Í¨³£¾ÍÊÇ´´½¨Õߣ©¶øÑÔ£¬Ã»ÓÐʲôȨÏÞÐèÒª¸³Ó裬 ÒòΪËùÓÐÕßȱʡ¾Í³ÖÓÐËùÓÐȨÏÞ¡££¨²»¹ý£¬ËùÓÐÕß³öÓÚ°²È«


Ïà¹ØÎĵµ£º

¹ØÓÚSQLSERVERÖиüÐÂTextÀàÐÍSQLÓï¾ä½âÎö

 »ù±¾·½·¨:
                   
UPDATETEXT { table_name.dest_column_name dest_text_ptr }//{ Òª¸üеıíÒÔ¼° text¡¢ntext »ò image ÁеÄÃû³Æ,Ö¸ÏòÒª¸üÐ嵀 text¡¢ntext »ò image Êý¾ÝµÄÎı¾Ö¸ÕëµÄÖµ£¨ÓÉ TEXT ......

ORACLE PL/SQL ¶ÔÏó(object)ѧϰ±Ê¼Ç(Ò»)

 1¡¢¶ÔÏóÀàÐ͹淶
 
´´½¨¶ÔÏóÀàÐ͹淶µÄÓï·¨ÈçÏÂ
 
CREATE [OR REPLACE] TYPE [schema.] type_name
[AUTHID {CURRENT_USER|DEFINER}] AS OBJECT (
Attribute1 datatype,
[attribute2 datatype,…]
[method 1]
[method 2]);
/

 
 
 
ÆäÖÐAUTHIDָʾ½«À´Ö´Ðи÷½·¨Ê±£¬ ......

ORACLE PL/SQL ¶ÔÏó(object)ѧϰ±Ê¼Ç(¶þ)

4¡¢¶ÔÏóÒÀÀµÐÔ
 
CREATE OR REPLACE TYPE Obj1 AS OBJECT (
f1 NUMBER,
f2 VARCHAR2(10),
f3 DATE
);
/

CREATE OR REPLACE TYPE Obj2 AS OBJECT (
f1 DATE,
f2 CHAR(1)
);
/

CREATE OR REPLACE TYPE Obj3 AS OBJECT (
a Obj1,
b Obj2
);
/
  
 
OBJ3ÒÀÀµÓÚOBJ ......

ORACLE PL/SQL ¶ÔÏó(object)ѧϰ±Ê¼Ç(Èý)

7¡¢¶ÔÏóÀàÐͼ̳Ð
 
¶ÔÏóÀàÐÍʵÏÖÔÊÐíÎÒÃÇ´´½¨Ò»¸ö»ùÀàÐÍ£¬»ò½Ð¸¸ÀàÐÍ£¬ÕâÖÖÀàÐ͵ÄÊôÐÔ»ò·½·¨¿ÉÒÔ±»ÁíÒ»¸ö¶ÔÏóÀàÐͼ̳С£È»ºó¿ÉÒÔ´´½¨Ò»¸ö×ÓÀàÐÍ£¬»ò½Ðº¢×ÓÀàÐÍ£¬Ö±½ÓʹÓü̳йýÀ´µÄÊôÐÔ»ò·½·¨£¬»òÕßÓÃ×Ô¼ºµÄÊôÐԺͷ½·¨ÖØд¸¸ÀàÐ͵ÄÊôÐÔ»ò·½·¨¡£
 
INSTANTIABLE¹Ø¼ü×Ö±íʾÎÒÃÇ¿ÉÒÔ´Ó¸ÃÀàÐÍÖÐʵÀý»¯»òÕß´´½¨¶ÔÏ ......

SQLÓï¾äPART2

Subquery: (single-row subqueries and multi-rows subqueries).
select select_list
from table
where expr operator (select select_list from table);
single-row subqueries operator: =, >, >=, <, <=, <>
e.g.:
1. select department_id, min(salary) from employees group by department_id ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ