ÕâÁ½ÌõsqlÒâ˼ÊÇ´ÓÌû×Ó±íÖÐÈ¡Ìû×Ó£¬À¸Ä¿Ãû³Æ´Óarticle_lm±íÖлñµÃ
select a.tid,a.bt,a.ftr,a.ftsj,b.lmmc from article a left join article_lm b on a.lmid=b.lmid
select a.tid,a.bt,a.ftr,a.ftsj,(select lmmc from article_lm where a.lmid=lmid) lmmc from article a
ÈçÉÏÁ½ÌõsqlÓï¾ä£¬ÎÒÏëÖªµÀÄÄÌõЧÂʸßһЩ£¬Îª ......
Êý¾Ý±íÈçÏÂ:
²úÆ·Ãû³Æ 2ÔÂÏúÁ¿ÅÅÃû 1ÔÂÏúÁ¿ 2ÔÂÏúÁ¿ 3ÔÂÏúÁ¿ 4ÔÂÏúÁ¿ 5ÔÂÏúÁ¿ 6ÔÂÏúÁ¿ 7ÔÂÏúÁ¿ 8ÔÂÏúÁ¿... 12ÔÂÏúÁ¿
ÓÐûÓк¯ÊýÄܽ«µÚ¶þ×ֶΣ¨2ÔÂÏúÁ¿ÅÅÃû£©µÄÖµÇó³öÀ´£¬¡¾2ÔÂÏúÁ¿ÅÅÃû¡¿ÊÇ2ÔÂÔÚÒ»Äê12¸öÔÂÖеÄÏúÁ¿ÅÅÃû
--tableΪ±íÃû
--p_monÔ·ݲÎÊý Ϊ1ÔÂ,2ÔÂ.........12ÔÂ
--Èç¹ûlzÖ»ÊÇÏëÇó³ö2Ô ......
java.sql.SQLException: ORA-04031: unable to allocate 26416 bytes of shared memory ("shared pool","SELECT * from ( SELECT rownu...","Typecheck heap","qry_text : qcpisqt")
Õâ¸öÎÊÌâ¸ÃÔõô½â¾ö£¿ÔÚÍøÉÏËÑÁËÏÂҲûÕÒµ½¾ßÌåµÄ½â¾ö·½°¸¡£
²¹³ä£ºÒòΪÎÒ²éѯµÄÊý¾ÝÁ¿±È½Ï´ó¡ ......
ÎÞЧµÄSQLÓï¾ä£¬Èç¹û²»ÐеĻ°»¹ÓÃѧPL/SQLÂð£¿
Java code:
Statement st = con.createStatement();
st.execute("exec update_emp('KING','K')");
¿ÉÒÔÖ´Ðд洢¹ý³Ì£¬ÓÃÄǸöCallablexxxxx,ÄãÓõÄstatementÊÇרÃÅÖ´ÐÐsqlµÄ
CallableStatement
ÒýÓÃ
CallableStatement
yeah!
ÕâÑù£¿»¹ÊÇÎÞЧSQL
......
ÈçºÎÓÃOracle´´½¨Êý¾Ý¿â£¬ÓõÄÊÇSQLÓï¾ä¡£
ÎÒÊǸÕѧµÄ¡£×Ô¼ºÔÚÍøÉÏÕÒÁËÒ»µã£¬¾ÍÊÇ¿´²»¶®°¡¡£
Ï£ÍûÄãÃǽ«ÏêϸµÄ¡£
WINDOWS Ï ¿ØÖÆ̨ DBCA
³õѧÕß»¹ÊÇʹÓÃDatabase Configuration Assistant£¨DBCA£©°É
Èç¹ûwindows¿ÉÒÔÔÚ¿ªÊ¼²Ëµ¥ÖÐÕÒµ½´ËÏî
µ±È»Ò²¿ÉÓÃÃüÁîÐÐÊäÈëdbca´ò¿ª´ËͼÐνçÃ湤¾ß(ͨÓÃ)
......
±¾ÈËֻѧ¹ýoracle£¬ÏÖÔÚ×öÁ·Ï°£¬ÀïÃæÓÐÒ»¶ÎserverÓï¾ä²»ÖªµÀÔõôÀí½â£¬Çë¸ßÊÖ°ïæ°ÑÕâ¶Î´úÂë¸Ä³ÉoracleµÄ´úÂ룬ллÁË
create procedure GetScheduleGivenDay @GivenDay datetime
as
select
task.title,
task.detail,
task.begintime,
task.notifytime,
task.need ......
×ܼǼÊý:1827; ×ÜÒ³Êý:305; ÿҳ6 Ìõ;
Ê×Ò³ ÉÏÒ»Ò³ [1] [2] [3] [4] 5
[6] [7] [8] [9] [10] ÏÂÒ»Ò³ βҳ