Oracle£º1 not in (null)¼ìË÷²»³ö½á¹û
in/not inÔÚÅжÏNULLʱÓõÄÓë=/<>Ò»ÑùµÄ·½Ê½£¬¼´±ØÐëÓÃis nullÀ´Åжϣ¬·ñÔòʼÖÕΪʧ°Ü¡£
Óï¾ä
select 'true' from dual where (1,2) not in ((2,3),(2,null));
³É¹¦µÄÔÒòÔÚÓÚÅж϶þԪֵʱÊ×ÏÈÅÐ¶ÏÆäÖÐÒ»¸ö·ÇnullÔªËØ£¬¸ÃÔªËØ³É¹¦»òÕßʧ°Ü»á“¶Ì·”ÁíÒ»¸ö¸ö¡£ÓÉÓÚÉÏÊöµÚÒ»¸öÔªËØ¾Íʹnot in³É¹¦ÁË£¬Òò´ËµÚ¶þ¸öÔªËØ¾Í²»ÔÙ´¦Àí¡£
Óï¾ä
select 'true' from dual where (2,1) not in ((2,3),(2,null));
µÄµÚÒ»¸öÔªËØÃ»ÓÐÔì³É“¶Ì·”£¬Òò´ËÒýÆðÁËnullÅжϣ¬´Ó¶ø½á¹ûʼÖÕΪʧ°Ü¡£
ÇëÔÙʵÑéÓï¾ä
select 'true' from dual where (2,1) not in ((2,3),(null,3));
Æä½á¹ûΪtrue£¬ÔÒòÊǵڶþ¸öÔªËØ¶Ì·Á˵ÚÒ»¸öÔªËØ¡£
ÒÔÉÏ·ÖÎö´¿Êô¸öÈ˹۵㣬½ö¹©²Î¿¼¡£
ת×Ôhttp://topic.csdn.net/t/20041230/12/3688313.html
Ïà¹ØÎĵµ£º
ǶÌ×±í£º
Óë¿É±äÊý×éÀàËÆ£¬²»Í¬Ö®´¦ÊÇǶÌ×±íûÓÐÊý¾ÝÉÏÏÞ¡£
Óï·¨£º
´´½¨»ùÀàÐÍ
create or replace type ǶÌ×±í»ùÀàÐÍÃû as object(×ֶβÎÊý);
create or replace type mingxitype as object(
goodsid varchar(15),
incount int,
providerid varchar(10)
)not final;
´´½¨Ç¶Ì×±íÀàÐÍ
create or replace type Ç ......
ÔÚOracleÖеÄÊ÷ÐβÙ×÷
1.È¡×ӽڵ㼰·¾¶(ÕýÊ÷):
select t.id ,t.code, t.name ,t.pid
,SYS_CONNECT_BY_PATH(t.id,'.')||'.' as IdPath
from tas_catalog t
--where id!=110
start with id=110
connect by pid = prior id
order siblings by id
2.È¡¸÷¼¶¸¸½Úµã(µ¹Ê÷)£º
select t.id ,t.code, t.na ......
²é¿´ÕýÔÚÖ´ÐеÄsqlÓï¾ä
SELECT osuser, username, sql_text from v$session a, v$sqltext b where a.sql_address =b.address order by address, piece;
²¶×½ÔËÐкܾõÄSQL
select username,sid,opname, round(sofar*100 / totalwork,0) || '%' as progress, time_remaining,sql_text from v$session_longops , v$ ......
PL/SQL
¿é½á¹¹
DECLARE
ÉùÃ÷²¿·Ö
BEGIN
¿ÉÖ´Ðв¿·Ö
EXCEPTION
Òì³£´¦Àí²¿·Ö
END;
Àý£º
Ê×ÏÈÎÒÃÇ¿´Ò»¸ö¼òµ¥Ö®Àý×Ó,ÏÂÃæÕâ¸öÀý×ÓÊÇͳ¼Æ´Ó1 ......
IP µØÖ·×öÈçÏÂÐ޸ģº
Public IP 10.85.10.119/121 -- > 10.85.10.219/221
Privite IP 192.168.1.119/121 -- > 192.168.1.219/221
Virtual IP 10.85.10.122/123 -- ......