ʹÓÃJava Web¶ÔAccessÊý¾Ý¿âµÄ±¸×¢×ֶβÙ×÷ÎÊÌâ
½üÆÚÓиöСCMSÏîÄ¿£¬ÓÉÓÚ·þÎñÆ÷¡¢ÈËÔ±ÒÔ¼°¹ÜÀíÖƶȵÈһϵÁÐÎÊÌ⣬²»µÃ²»²ÉÓÃJava Web+AccessÕâÖÖ²»Âײ»ÀàµÄ×éºÏ½øÐпª·¢£¬ÆÚ¼äÓöµ½ÁËÒ»¸öСÎÊÌ⣬ÄǾÍÊÇÎÄÕÂÄÚÈݲÉÓÃAccessµÄ“±¸×¢”ÀàÐÍ´æȡʱ£¬·¢Éú×Ô¶¯½Ø¶ÏµÄÎÊÌâ¡£Ò²¾ÍÊÇ˵£¬´æ½øÈ¥10000×ÖµÄÎÄÕ£¬Ö»ÄÜÏÔʾ³ö3000×Ö¡£¾¹ý²éÕÒ×ÊÁϺÍʵÑ飬·¢ÏÖÕâ¸öÎÊÌâÊÇPreparedStatementµÄsetter()ºÍgetter()·½·¨Ê¹Óò»µ±Ôì³ÉµÄ¡£
¹Ù·½×ÊÁÏÏÔʾ£¬AccessµÄ“±¸×¢”×ֶεÄ×Ö·û¸öÊý£¬Èôͨ¹ýÓû§½çÃæÊäÈëÔò×î´óΪ65,535£»ÈôÒÔ±à³Ì·½Ê½ÊäÈëʱÔò¿ÉÖ§³Ö1G×Ö½ÚµÄ×Ö·û´æ´¢¡£ËùÒÔ²»´æÔÚÊý¾Ý¿â×Ö¶ÎÀàÐÍÑ¡Ôñ´íÎóµÄÎÊÌâ¡£ÄÇôֻÓÐÔÚ´æÈ¡µÄ¹ý³ÌÖÐÕÒÎÊÌâÁË¡£
JavaµÄStringÀàÐÍÍüÁ˾¿¾¹ÄÜ´æ·Å¶àÉÙ¸ö×Ö·ûÁË£¨10µÄ16´Î·½£¿£©£¬×ÜÖ®Ò²²»ÊÇStringÀàÐ͵ĴíÎó¡£Òò´Ë£¬¾Í½«ÎÊÌⶨλÔÚÁË´¦ÀíÊý¾Ý¿â´æ·ÅµÄsetter()ºÍgetter()·½·¨ÉÏÁË¡£¾²é£¬setString()·½·¨ÄÜ´æµÄֵȡ¾öÓڸòÎÊýÏà¶ÔÓÚÇý¶¯³ÌÐòÔÚ VARCHAR
ÖµÉϵÄÏÞÖƵĴóС¡£GoogleÁËһϣ¬ÍøÉÏÌṩÁ˸÷ÖÖ·½·¨£¬ÊÔÁËÊÔclobµÄ·½Ê½£¬·¢ÏÖAccessËƺõ²»Ö§³Öclob£¬Òò´ËÎÒ¾ö¶¨ÊÔÒ»ÊÔ×Ö·ûÁ÷µÄ·½Ê½½øÐдæÈ¡¡£¾¹ýÊÔÑ飬ÖÕÓڳɹ¦£¬ÏÖ½«´úÂëÌṩÈçÏ£º
Ò»¡¢Ê¹ÓÃsetCharacterStream()ÏòAccessÊý¾Ý¿âÖдæ·ÅÊý¾Ý
//contentΪStringÐ͵ÄÎÄÕÂÄÚÈÝ
java.io.Reader clobReader = new java.io.StringReader(content);
pStatement.setCharacterStream(4, clobReader, content.length());
¶þ¡¢½«×Ö½ÚÁ÷·½·¨·â×°ÆðÀ´
public class UtilTools {
/*
* ÔÚaccessÊý¾Ý¿âÖУ¬½«Memo±¸×¢ÐÍ×Ö¶ÎÀïµÄÊý¾ÝÍêÕûÈ¡³ö
* @param InputStream
* @return StringBuilder
*/
public StringBuilder accessdbMemoToString(InputStream in)
{
BufferedReader reader=new BufferedReader(new InputStreamReader(in));
StringBuilder sb=new StringBuilder();
String line=null;
try {
while((line=reader.readLine())!=null){
sb.append(line);
}
} catch (IOException e) {
e.printStackTrace();
}
return sb;
}
Èý¡¢µ÷ÓöþÖеķ½·¨£¬ÊµÏÖ´ÓAccessÊý¾Ý¿âÖÐÍêÕûÈ¡Êý¾Ý
//dbΪÏàÓ¦µÄPOJO¶ÔÏó£¬"content"Ϊ×Ö¶ÎÃû³Æ£¬rsΪResultSet¶ÔÏó
UtilTools ut = new UtilTools();
db.setContent(
Ïà¹ØÎĵµ£º
ת×Ô£ºhttp://hi.baidu.com/wqj403/blog/item/149957345cd6a11891ef3976.html
ÓÃjavaÔõôÌáÈ¡»òÊǽâѹrarѹËõÎĵµ£¿ÒÔÇ°²éÁ˺ܶàµÄ×ÊÁÏ£¬Ã»ÓÐÕÒµ½Ïà¹ØµÄµÚÈý·½¿â£¬ÍøÉϲéÕÒµÄ×ÊÁÏ˵ÊǽâÎörarÖ»Äܸü¼ÓrarµÄÃüÁîÐвÎÊýÀ´½âÎö¡£ÒòΪrarѹËõÎĵµµÄÄÚ²¿½á¹¹ÊÇûÓй²¿ªµÄ¡£ËùÒÔûÓÐרÃŵĽâÎö¿â³ÌÐò¡£×Ô¼ºÒ²¾ÍÖ»ºÃÓÃÃüÁîÐÐÁË£¬µ« ......
ÔÚ¿ª·¢Öбàд¸ßÐÔÄÜJavaµÄ×¢Òâµã
1.Òª°Ñ×¢Òâµã·Åµ½Éè¼ÆÉÏ.
2.²»ÒªÒÀÀµ±àÒëÆ÷µÄÓÅ»¯¼¼Êõ,ÕýÈ·µÄÀí½âÔËÐÐÆÚ´úÂë,À´Ìá¸ßµÄ´úÂëµÄÔËÐÐËÙ¶È.
3.¶Ô¶ÔÏóµÄ´´½¨³É±¾½µµ½×îµÍ(±ÈÈç:ºÏÀíÉè¼ÆÀàµÄ´óС¡¢ºÏÀíÉè¼ÆÀàµÄÉî¶È¡¢²»Òª´´½¨²»±ØÒªµÄ¶ÔÏóµÈµÈ¡£¡£)
4.¾¡Á¿Ê¹ÓÃStringBufferÁ¬½Ó×Ö·û´®¡£
5.½µµÍͬ²½´øÀ´µÄÐÔÄÜÓ°Ïì¡£
ÒÔÉÏÖ»Ê ......
Ô´´¡¿Java Builder ³õÌåÑé
2006-10-19 11:43 junziyang
¡¾Ô´´¡¿Java Builder ³õÌåÑé
MATLABµÄ×îа汾2006bÖÐÐÂÌíÁËÒ»¸ö²úÆ·£MATLAB Builder for Java¡£Æäʵ±¾À´Matlab¾ÍÓÐJavaÍⲿ³ÌÐò½Ó¿Ú£¬²»¹ýÔÀ´µÄ½Ó¿ÚÖ»ÄÜÔÚ.mÎļþÖе÷ÓÃJava£¬¶øÎÞ·¨ÔÚJava³ÌÐòÖе÷ÓÃMatlab¡£ÐµÄJava BuilderΪÎÒÃÇÔÚJava³ÌÐòÖе÷ÓÃMatlab·á¸» ......
ÎÒÏÖÔÚ¸øÄãÒ»¸öJAVAºÍJSPÖ®¼äµÄ¹Øϵ,ÒÔ¼°JAVAµÄÍêÕûÈÏʶ
JAVA·ÖΪJ2EE,J2SE.J2ME,ÏÂÃæ·Ö±ð½éÉÜ:
Ò».J2EE£ºJava 2 Platform Enterprise Edition ÆóÒµ°æ£¬ÓÃÓÚÆóÒµÓ¦Óã¬Ö§³Ö·Ö²¼Ê½²¿Êð¡£
J2EEƽ̨ÓÉÒ»ÕûÌ×·þÎñ£¨Services£©¡¢Ó¦ÓóÌÐò½Ó¿Ú£¨APIs£©ºÍÐÒé¹¹³É£¬
Ëü¶Ô¿ª·¢»ùÓÚWebµÄ¶à²ãÓ¦ÓÃÌṩÁ˹¦ÄÜÉϵÄÖ§³Ö¡£Ëü°ü ......
connect·½·¨ÊÇjava.sql.Driver½Ó¿ÚÖж¨ÒåµÄ·½·¨£¬Èç¹ûÁ¬½ÓµÄÊý¾Ý¿â²»Í¬£¬ÄÇôΪ²»Í¬µÄÊý¾Ý¿â±àдJDBCÇý¶¯½«±äµÃºÜÁé»î£¬ÊµÏÖDriver½Ó¿Ú¼´¿É¡£Á¬½ÓÊý¾Ý¿âʱÊ×ÏȵÃ×°ÔØJDBCÇý¶¯£¬Ò²¾ÍÊǵ÷Óà Class.forName(“com.mysql.jdbc.Driver”)·½·¨£¬ÔÚµÚһƪÖÐÒѾÁгömysql jdbc DriverÀàµÄÔ´Â룬´ËÀà¼Ì³ÐNonRegisteringD ......