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

sqlserver2000+jspÂÒÂëÎÊÌ⣬¼±Çó½â¾ö£¡£¡£¡

jspÍùsqlserver2000Àï²åÈëÖÐÎÄʱ£¬×ÜÊÇÂÒÂ룬Ôõô½â¾ö°¡£¿
SQL code:
insert tb(col) values(N'ÖÐÎÄ')


²åÈëʱÔÚÖÐÎÄ×Ö·ûÇ°¼Ó¸ö´óдµÄN

²»ÐÐѽ£¬String sql="insert into news values(N'+title+"',N'"+contents+"')";
²»¾ÍÊÇÕâÑùô£¿²»ÐеÄ

ÒýÓÃ
²»ÐÐѽ£¬String sql="insert into news values(N'+title+"',N'"+contents+"')";
²»¾ÍÊÇÕâÑùô£¿²»ÐеÄ

»¹ÓоÍÊÇÄãnews±íÉϵÄtitle,contentsµÈÏà¹Ø×ֶεÄÊý¾ÝÀàÐÍҪΪnvarchar,²»ÄÜÊÇvarchar.

ÄãÓÃ:
sp_help news
²é¿´Ïà¹Ø×ֶεÄÊý¾ÝÀàÐÍ£¬Èç¹û±íÖÐÓÐvarchar,char,textÀàÐ͵Ä×ֶΣ¬·Ö±ð½«Æä¸ÄΪnvarchar,nchar,ntext,Óï·¨ÈçÏ£º
alter table news alter column title nvarchar(500)--500±íʾ³¤¶È£¬¸ù¾ÝÐèÒªÀ´Éè¡£
go
¸ÄÍêºóÔÙÓÃһ¥µÄ·½·¨ÊÔÊÔÓ¦¸Ã¾Í¿ÉÒÔÁË¡£

¿´¿´Êý¾Ý¿âµÄÅÅÐò¹æÔò,×ֶεÄÀàÐÍ 


¶÷ nvarcharÊÇunicode±àÂë ¸Ä³ÉnvarcharÊÔÊÔ

ÄãµÄjsp¿ª·¢»·¾³ÊÇʲô×ÖÌåѽ,Ñ¡ÓÃunicode±àÂëÊÔÊÔ¿´.


Ïà¹ØÎÊ´ð£º

jspÁ´½Ósql2000µÄÒÉÎÊ£¿



type Exception report


message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jas ......

JSP/Servlet½»»¥ - Java / Web ¿ª·¢

JSPÒ³ÃæÖÐÓжà¸öradio°´Å¥
  JSPÒ³Ã潫²ÎÊýPOST¸øservlet
  
  ÒªÇóÈçÏÂ;
  1.Ñ¡ÔñÒ»¸öradio£¬µ÷ÓÃservlet servletÖиù¾Ý²ÎÊýµ÷ÓÃÆäËû½Ó¿Ú£¬³ý·ÇÑ¡ÖиÃradio²¢µã»÷JSPÖеÄʵР......

jspÒ³Ãæ¼ä±äÁ¿´«µÝ¼°»ñÈ¡µÄÎÊÌâ - Web ¿ª·¢ / ÆäËû

ËÑË÷ÁËһϣºhttp://so.csdn.net/bbsSearchResult.aspx?q=jsp+%e4%bc%a0%e9%80%92&p=1£¬Ã»Óз¢ÏÖÄÜÓõġ£ÒòΪÎÒÊdzõѧjsp£¬Òò´ËÓÐЩҲÐíÄÜÓã¬Ö»ÊÇÎÒ¿´²»Ã÷°×£¿
Ò»¡¢ÎÒµÄÇéÐΣº
a.html ͨ¹ý<form action=&q ......

¹ØÓÚjspÏÔʾÏÂÀ­Áбí¿òµÄÎÊÌâ - Java / Web ¿ª·¢

ÎÒÔÚjspÒ³ÃæÀïÓÐÒ»¸öÏÂÀ­ÁÐ±í£¬ÀïÃæÓÐÁ½¸öÖµ·Ö±ðÊǹ̶¨×ʲú¡¢ÆäËû×ʲú£¬´úÂëÈçÏ£º
<select name="select">
<option value="¹Ì¶¨×ʲú">¹Ì¶¨×ʲú</option>
<option ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ