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

½éÉÜJSPÊý¾Ý¿â¸ß¼¶²Ù×÷

¼òµ¥½éÉÜJSPÊý¾Ý¿â²Ù×÷µÄ3¸öС¼¼ÇÉ£ºÊý¾ÝÅÅÐò£¬Ö÷/´Ó±í´¦Àí£¬ÊÂÎñ´¦Àí¡£
1¡¡Êý¾ÝÅÅÐò
ÔÚÊý¾Ý¿â¼¼ÊõÖУ¬¿ÉÒÔʹÓÃORDER×Ó¾ä¶Ô²éѯ½á¹û½øÐÐÅÅÐò
[ ORDER BY { order_by_exdivssion[ ASC | DESC]} [ ¸…n ] ]
ÆäÖУ¬order_by_exdivssionÓÃÀ´Ö¸¶¨ÒªÅÅÐòµÄÁУ»ASCÖ¸¶¨°´µÝÔö˳ÐòÅÅÁУ»DESCÖ¸¶¨°´µÝ¼õ˳ÐòÅÅÐò¡£
Class.forName( "com.microsoft.jdbc.sqlserver.SQLServerDriver" ).new Instance( );
String url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=pubs";
String user="dxaw";
String password="123";
Connection conn=DriverManager.getConnection( url, user, password );
Statement st=conn.createStatement( ResultSet.TYPE_SCROLL_SENSITIVE,
ResultSet.CONCUR_UPDATABLE );
String sql="select * from tbl order by id desc";
ResultSet rs=st.executeQuery( sql );
while( rs.next )...{
out.println( rs.getString( "..." ) );
}
rs.close( );
st.close( );
conn.close( );
2¡¡Ö÷/´Ó±í´¦Àí
ʵÏÖÖ÷´Ó±í²éѯÖ÷Ҫͨ¹ýIN×Ó¾äºÍEXISTS×Ó¾äΪʵÏÖ¡£
IN×Ó¾äÊÇͨ¹ýIN£¨»òNOT¡¡IN£©Á¬½ÓÆðÀ´µÄÒ»ÖÖ¼ìË÷Êý¾ÝµÄ·½·¨£¬Æä·µ»ØµÄ½á¹û¼¯ÖпÉÒÔ°üº¬Áã¸ö»òÕ߶à¸öÖµ¡£
EXISTS×Ó¾äÊÇͨ¹ýEXISTS£¨»òNOT¡¡EXISTS£©Á¬½ÓÆðÀ´µÄÒ»ÖÖ¼ìË÷Êý¾ÝµÄ·½·¨£¬ËüµÄ¹¦ÄÜÊÇÅжÏ×Ó²éѯµÄ½á¹û¼¯ÖÐÊÇ·ñÓÐÊý¾ÝÐзµ»Ø£¬·µ»ØTRUE»òFALSE£¬¶ø²»·µ»ØÆäËûµÄʵ¼ÊÊý¾Ý¡£ÓÉÓÚ²»ÐèÒªÔÚÕâÖÖ×Ó²éѯÖзµ»Ø¾ßÌåÖµ£¬ÕâÖÖ×Ó²éѯµÄÑ¡ÔñÁÐ±í¾­³£Ê¹ÓÓSELECT¡¡*”¸ñʽ£¬ÆäÍâ²ãµÄWHERE×Ó¾äÒ²²»ÐèÒªÖ¸¶¨ÁÐÃû¡£
select au_id, au_name form authors where au_id IN (
select au_id form titleauthor where title_id IN (
select title_id form titles where type="business"
)
)
3¡¡ÊÂÎñ´¦Àí
ÊÂÎñÊÇÏÖ´úÊý¾Ý¿âÀíÂÛÖеĺËÐĸÅÄîÖ®Ò»¡£Èç¹ûÒ»×é´¦Àí²½Öè»òÕßÈ«²¿·¢Éú»òÕßÒ»²½Ò²²»Ö´ÐУ¬ÎÒÃdzƸÃ×é´¦Àí²½ÖèΪһ¸öÊÂÎñ¡£µ±ËùÓеIJ½ÖèÏñÒ»¸ö²Ù×÷Ò»Ñù±»ÍêÕûµØÖ´ÐУ¬ÎÒÃdzƸÃÊÂÎñ±»Ìá½»¡£ÓÉÓÚÆäÖеÄÒ»²¿·Ö»ò¶à²½Ö´ÐÐʧ°Ü£¬µ¼ÖÂûÓв½Öè±»Ìá½»£¬ÔòÊÂÎñ±ØÐë»Ø¹ö£¨»Øµ½×î³õµÄϵͳ״̬£©¡£ÊÂÎñ±ØÐë·þ´ÓISO/IECËùÖƶ¨µÄACIDÔ­Ôò¡£ACIDÊÇÔ­×ÓÐÔ£¨atomicity£©¡¢Ò»ÖÂÐÔ£¨consistency£©¡¢¸ôÀëÐÔ£¨isolation£©ºÍ³Ö¾ÃÐÔ£¨durability£©µÄËõд¡£ÊÂÎñµÄÔ­×ÓÐÔ±íʾÊÂÎñÖ´Ðйý³ÌÖеÄÈκÎʧ°Ü¶¼½«µ¼ÖÂÊÂÎñËù×öµÄÈκÎÐÞ¸ÄʧЧ¡£Ò»ÖÂÐÔ±íʾµ±ÊÂÎñÖ´ÐÐʧ


Ïà¹ØÎĵµ£º

[ת]asp¡¢php¡¢asp.net¡¢jsp½éÉܼ°ÓÅȱµã±È½Ï


     ÏÖÔÚÖ÷Á÷µÄÍøÕ¾¿ª·¢ÓïÑÔÎÞÍâºõasp¡¢php¡¢asp.net¡¢jspµÈ¡£
     
     ÍøÒ³´Ó¿ªÊ¼¼òµ¥µÄhmtlµ½¸´ÔӵķþÎñÓïÑÔ£¬×ß¹ýÁË10¶à¸öÄêÍ·£¬¸÷ÖÖ¼¼Êõ²ã³ö²»Çµ¥¸öµÄÖ÷Á÷¼¼ÊõÒ²ÔÚ²»¶Ï·­Ðµİ汾£¬ÏÖÔÚ·ÖÎöϸ÷ÖÖÓïÑÔµÄÇø±ð¡¢ÓÅÊÆ¡¢ÁÓÊÆ¡¢¿ª·¢×¢ÒâÊÂÏ
   ......

Java/JSPÖÐÎÄÂÒÂëÎÊÌâ½â¾öÐĵÃ

Java/JSPÖÐÎÄÂÒÂëÎÊÌâ½â¾öÐĵÃ
×Ô´Ó½Ó´¥JavaºÍJSPÒÔÀ´£¬¾Í²»¶ÏÓëJavaµÄÖÐÎÄÂÒÂëÎÊÌâ´ò½»µÀ£¬ÏÖÔÚÖÕÓڵõ½Á˳¹µ×µÄ½â¾ö£¬ÏÖ½«ÎÒÃǵĽâ¾öÐĵÃÓë´ó¼Ò¹²Ïí¡£
Ò»¡¢JavaÖÐÎÄÎÊÌâµÄÓÉÀ´
JavaµÄÄں˺ÍclassÎļþÊÇ»ùÓÚunicodeµÄ£¬ÕâʹJava³ÌÐò¾ßÓÐÁ¼ºÃµÄ¿çƽ̨ÐÔ£¬µ«Ò²´øÀ´ÁËһЩÖÐÎÄÂÒÂëÎÊÌâµÄÂé·³¡£Ô­ÒòÖ÷ÒªÓÐÁ½·½Ã棬JavaºÍJS ......

MysqlͨÓòéѯ²Ù×÷Àà(Jsp+servlet+javaBean+Mysql)

ÔÚÌÚ¿ÆÅàѵÁËÓÐ1¸ö°ëÔÂÁË£¬ÖÕÓÚѧÍêJSP+SERVLET+JAVABEAN+MYSQL£¬Ñ§ÁËjavaµÄµÚÒ»Ì×web½â¾ö·½°¸¡£ÀÏʦҪÇóÎÒÃÇ6ÈËÒ»×鿪ʼ×öÒ»¸ö¶©²Íϵͳ¡£Õâ¸öϵͳûÓÐʲôÌرðµÄ£¬¾Í¸úµç×ÓÉ̳ÇÊÇÒ»¸öÑùµÄ¡£ÓÉÓÚÒª¶ÔÊý¾Ý¿â×ö´óÁ¿µÄÔöɾ¸Ä²é£¬ÄǸö´úÂëÓֶ࣬ÎÒÏëÄܲ»Äܽ«Êý¾Ý¿â²Ù×÷µÄÕâÒ»²ã´ò°üÆðÀ´(SqlOperDao)£¬ÈÃÎÒ¶ÔÊý¾Ý¿â²Ù×÷£¬Óü¸Ðд ......

TomcatÏÂJSP¾­µäÅäÖÃʵÀý

µÚÒ»²½£ºÏÂÔØj2sdkºÍtomcat
µ½sun¹Ù·½Õ¾£¨http://java.sun.com/j2se/1.5.0/download.jsp£©ÏÂÔØj2sdk£¬×¢ÒâÏÂÔذ汾ΪWindows Offline InstallationµÄSDK£¬Í¬Ê±×îºÃÏÂÔØJ2SE 1.5.0 Documentation£¬È»ºóµ½tomcat¹Ù·½Õ¾µã£¨http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi£©ÏÂÔØtomcat£¨ÏÂÔØ×îÐÂ5.5.9°æ±¾µ ......

JSP²¿·ÖÄÚÈÝ

JSPÓï·¨
Ö¸Áî(Directive)±ê¼Ç
      page Ö¸Áî
      include Ö¸Áî
      taglib Ö¸Áî
<%@ page language="java" %>
<%@ include file="test.html"%>
<%@ taglib uri="http://www.deng.com/tags" prefix="util" %>
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ