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

jspÖÐsqlǶÌײéѯµÄÎÊÌâ - Web ¿ª·¢ / JavaScript

ÓÐÁ½ÕÅ±í£º
tb_topic (Tid,U_id,T_title,T_content,T_submittime,T_rq);Ö÷¼ü£ºU_id¡£T_rqÊǸÃÖ÷ÌâµÄ»Ø¸´Êý¡£
tb_response(Rid,Tid,R_author,R_submittime,R_content);Ö÷¼üÊÇ£ºRid¡£
ÏëʵÏÖÒ»¸öÑ­»·Í³¼ÆÊä³ö¡£¸ù¾ÝTid´Ó±ítb_responseÖлñµÃËùÓлظ´¹ýtb_topicÖеÄÖ÷ÌâµÄÓû§ÃûR_author£¬
ÔÙ¸ù¾ÝR_author»ñµÃ¸ÃÓû§ÔÚtb_topicÖз¢±íµÄÌû×ÓÊýºÍ»Ø¸´´óÓÚ10µÄÌû×ÓÊý¡£¿ÉÒ»Ö±Ìáʾwhile(rs.next())ÕâÐÐÓдíÎó£¬Çë¸ßÊÖÖ¸µãÃÔ½ò°¡¡£

ÏÂÃæÊÇÎҵĴúÂ룺£¨Tid´ÓÇ°ÃæµÄÒ³Ãæ»ñÈ¡£©
<%@ page contentType="text/html;charset=GB2312"%>
<%@ page import="java.sql.*" %>

<% String Tid=request.getParameter("Tid");
  Connection con;
Statement sql; 
ResultSet rs; 
ResultSet rs2; 
String url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=jfreechart";
String user="sa";
String passwd="123456";
try{
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");  
con=java.sql.DriverManager.getConnection(url,user,passwd);
sql = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
String follower="select R_author from tb_response where Tid='"+Tid+"' order by Tid";
  rs=sql.executeQuery(follower);
while(rs.next())
{
String nub2="select T_rq from tb_topic


Ïà¹ØÎÊ´ð£º

csvÎļþת»»³Ésqlµ¼Èëµ½Êý¾Ý¿â£¬Ã»ÓÐÊý¾ÝΪºÎ£¿

Ö´ÐеÄ˳Ðò£º
1£©Îļþä¯ÀÀ¿ò£¨Ñ¡ÔñÎļþʹÓã©
Ñ¡ÔñºÃÎļþºó
µã»÷Ò»¸öµ¼Èë°´Å¥µÄʱºò £¬°ÑÉÏÃæÉÏ´«¿òÀïµÄcsvÎļþÒÔÒ»¸öIDΪÎļþÃû£¬ÉÏ´«µ½**/**Îļþ¼ÐÏÂ
2£©¶ÁÈ¡Õâ¸öÎļþ¼ÐϵÄcsvµÄÎļþ£¬×ª»»³Ésql
3 ......

ÇóÒ»SQL - MS-SQL Server / »ù´¡Àà

tab1 ×Ö¶Î:billdate,goodsid,incount,inmoney,outcount,outmoney,endprice,endcount,endamt
tab2 ×Ö¶Î:goodsid,goodskind£¨ÉÌÆ·ÀàÐÍ£©
tab3 ×Ö¶Î:goodskind£¨ÉÌÆ·ÀàÐÍ£©,kindname
½á¹û£º
µÃµ½ÉÌÆ·ÀàÐÍÔÚÒ»¶Îʱ¼ä ......

jspºÍtomcatÎÊÌ⣬¿ì·èÁË - Java / Java EE

ÎÒдÁ˸öjspÒ³Ã棬Ȼºó¸Ä¶¯ÁËһϣ¬¸Ä¶¯µÄÄÚÈݾÍÊÇÔÚjspÒ³ÃæµÄjsº¯ÊýÀï¼ÓÁ˸öalert()Óï¾ä£¬µ«ÊÇÎÒ·ÃÎÊÕâ¸öÒ³Ãæʱ£¬ËÀ»î¶¼ÊÇÔ­À´Ò³ÃæµÄÄÚÈÝ£¬ÎÒ¼ÓÁ˺ܶàalertº¯Êý»¹ÊÇû¸Ä¶¯Ç°µÄÒ³ÃæÄÚÈÝ£»tomcatÖØÆôÁË£¬Ò²ÖØв¿ÊðÕâ ......

SQL·ÖÒ³ÓëOracle·ÖÒ³µÄÒÉÎÊ£¿ - Java / Web ¿ª·¢

ÕâÀïÏëÁ˽âÏ£¬¹ØÓÚSQL ServerÖзÖÒ³ºÍOracleÖзÖÒ³£»
ƽ³£Ð´Ó¦ÓóÌÐòµÄʱºò£¬±ÈÈçÓõÄÓïÑÔÊÇJava£¬ÓиöÁбíÒ³Ã棬ÐèÒª¶ÔÊý¾Ý·ÖÒ³ÏÔʾ£»
ÕâÀïÒª·ÖÒ³ÄѵÀ²»ÐèÒª½èÖúJava£¬¶øÖ±½ÓsqlÄÜÖªµÀ·ÖÒ³Âð£¬ÆðÂëÒ²Òª´«¸öÒ³Âë½ ......

Accessͨ¹ýSqlÓï¾ä´´½¨Êý¾Ý¿â - .NET¼¼Êõ / C#

ÔÚAccessµÄ²éѯÖÐÖ´ÐÐÏÂÃæµÄÓï¾ä,ÎÞЧ,ÌáʾÆÚ´ýselect ,updata ,...
CreateTble C=Answer N="»ØÌû±í"
(
  C=ID T="INTEGER" P=No M=No N="±àºÅ" Z=false,
  C=Ques ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ