oracle »ù´¡Á·Ï°Ìâ - Oracle / »ù´¡ºÍ¹ÜÀí
ÔÚijÊý¾Ý¿âScottģʽÏÂÓÎEMP£¬dept±í£¬Æä¶ÔÓ¦±í½á¹¹·Ö±ðÈçÏ£º
×Ö¶ÎÃû³Æ ×Ö¶ÎÒâÒå ÊÇ·ñΪ¿Õ£¿ÀàÐÍ
EMPNO Ô±¹¤±àºÅ NOT NULL NUMBER(4)
ENAME Ô±¹¤ÐÕÃû VARCHAR2(10)
JOB Ô±¹¤ÐÕÃû VARCHAR2(9)
MGR Ô±¹¤Éϼ¶ NUMBER(4)
HIREDATE Ô±¹¤¹ÍÓÃÈÕÆÚ DATE
SAL ¹¤×Ê NUMBER(7,2)
DEPTNO Ô±¹¤ÐÕÃû NUMBER(2)
Ãû³Æ ÊÇ·ñΪ¿Õ£¿ÀàÐÍ
DEPTNO ²¿ÃűàºÅ NOT NULL NUMBER(2)
DNAME ²¿ÃÅÃû VARCHAR2(14)
LOC ²¿ÃŵØÖ· VARCHAR2(13)
ÎÊÌ⣺
ΪEMP±í´´½¨Ò»¸öÃûΪ1µÄ´¥·¢Æ÷£¬µ±Ö´ÐвåÈë²Ù×÷ʱ£¬Í³¼Æ²Ù×÷ºóÔ±¹¤ÈËÊý£¬µ±Ö´Ðиüй¤×ʲÙ×÷ʱ£¬Í³¼Æ¸üкóÔ±¹¤Æ½¾ù¹¤×Ê£¬µ±Ö´ÐÐɾ³ý²Ù×÷ʱ£¬Í³¼Æɾ³ýºó¸÷¸ö²¿ÃŵÄÈËÊý
{{
Ïà¹ØÎÊ´ð£º
ORACLEÅàѵ(OCA)ÈÏÖ¤½éÉÜ
Oracle10g Certified Associate (OCA) Oracle ÈÏ֤רԱ¡£
¿¼ÊԳɼ¨Í¨¹ýÄÜ»ñµÃOracle¹«Ë¾ÎªÄú°ä·¢µÄÈ«ÇòÈÏÖ¤µÄÓ¢ÎÄOCAÖ¤Êé¡£OCAÓÉOracle¹«Ë¾³öÌâ¡£
¸ÃÖ¤Êé¿É×÷Ϊ¸÷ÆóÊÂÒµµ¥Î»Êý¾Ý¿ ......
ÕâÀïÏëÁ˽âÏ£¬¹ØÓÚSQL ServerÖзÖÒ³ºÍOracleÖзÖÒ³£»
ƽ³£Ð´Ó¦ÓóÌÐòµÄʱºò£¬±ÈÈçÓõÄÓïÑÔÊÇJava£¬ÓиöÁбíÒ³Ã棬ÐèÒª¶ÔÊý¾Ý·ÖÒ³ÏÔʾ£»
ÕâÀïÒª·ÖÒ³ÄѵÀ²»ÐèÒª½èÖúJava£¬¶øÖ±½ÓsqlÄÜÖªµÀ·ÖÒ³Âð£¬ÆðÂëÒ²Òª´«¸öÒ³Âë½ ......
select distinct '1' t1,'2' t2,'3' t3,'4' t4 from table ²é³öÀ´µÄ½á¹ûΪ
1,2,3,4
ÎÒÏëµÃÒÔÏÂÕâÑùµÄЧ¹û
1
2
3
4
ÇëÎÊÒ»ÏÂÓÐʲô°ì·¨¿ÉÒÔ½â¾ö???
ûÓкõķ½·¨£¬ÓÃunion£¬Ò»ÌõÌõ¼Ç¼ƴ½Ó
SQL code:
wi ......
oracleº¯ÊýÈçÏ£º
create or replace function P_WEB_GETCITYID
(
p_mobileNumber in VARCHAR2,
p_cityid out NUMBER
) Return NUMBER
IS
p_areacode varc ......