EJB:when I use "Prepared Statement " to access database(update a record),I set a parameter by "setString",I can not update properly if the string is Chinese ,why?should I use "setBytes"?

wendywendy (wind)
(#34071@0)
2001-3-17 -05:00

回到话题: EJB:when I use "Prepared Statement " to access database(update a record),I set a parameter by "setString",I can not update properly if the string is Chinese ,why?should I use "setBytes"?

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=34071