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

java³ÌÐò±¨´í£¡¸ßÊÖÖ¸µã - Java / Web ¿ª·¢


Caused by: java.sql.SQLException: No value specified for parameter 1
ÏÂÃæÊdzÌÐò£º
String sql="insert into teacrepl_classtimedispense(teacherreplaceid,classtimedispenseid,replaceksnum,replacetime) values("+
teacreplacemaxid+","+chooseclasstimedispenseid+","+replaceKSnum+","+replaceDate+")";
Session session=this.getHibernateTemplate().getSessionFactory().openSession();
Transaction tx=null;
try{
tx=session.beginTransaction();
session.createSQLQuery(sql).executeUpdate();
}catch(Exception e){
if(tx!=null) tx.rollback();
e.printStackTrace();
}
finally{
session.flush();
session.close();
}
}
×Ô¼º¶¥£¡

²»ÊÇ˵µÄºÜÃ÷È·Âð£¿
ûÓиøÐÂÔöÊý¾ÝµÄµÚÒ»ÁÐÖ¸¶¨Öµ

char£¬varchar,date,timestampÕâÑùµÄ×Ö¶ÎÐèÒª¼Ó''¡£¡£ÄãÊÔÊÔ¡£

ÒýÓÃ
²»ÊÇ˵µÄºÜÃ÷È·Âð£¿
ûÓиøÐÂÔöÊý¾ÝµÄµÚÒ»ÁÐÖ¸¶¨Öµ

ËùνµÄÐÂÔöµÚÒ»ÁÐÖ¸µÄÊÇÖ÷¼üÂð£¿

ÒýÓÃ

ÒýÓà 2 Â¥ ajwyyan µÄ»Ø¸´:
²»ÊÇ˵µÄºÜÃ÷È·Âð£¿
ûÓиøÐÂÔöÊý¾ÝµÄµÚÒ»ÁÐÖ¸¶¨Öµ

ËùνµÄÐÂÔöµÚÒ»ÁÐÖ¸µÄÊÇÖ÷¼üÂð£¿


ÄãÄѵÀûÓÐÉ趨Ö÷¼ü£¿£¿£¿

ÎÒÏëÎÊÏ£¬ÓÃssh´î½¨µÄ¿ò¼Ü£¬ÔõôÄܹ»×Ô¶¯±£´æÁ½¸ö±íµÄÖмäÓ³Éä±íÄØ£¿ÎÒ²åÈëµÄÕâ¸öÊý¾Ý¾ÍÊÇÍùÖмä±í²åÈ룬ÓÉÓÚhql²»»á£¬ËùÒÔÖ»ÄÜʹÓÃsqlÁË

µ÷ÊÔÒ»ÏÂŶ£¬°ÑµÃµ½µÄSQL¿½³öÀ´£¬·Åµ½Êý¾Ý¿âÖ´ÐÐһϿ©
{{---


Ïà¹ØÎÊ´ð£º

java socket email ÎÊÌâ - Java / Java SE

ÎÒÔÚ javaºËÐļ¼ÊõÉÏ ¿´ÁËÒ»¸ö ÀûÓà Java socket emailµÄÀý×Ó ¿ÉÊÇÔõôҲ ²»³É¹¦ Ϊʲô£¿
Ô´Âë
Java code:

package cn.com.test.email;
import java.awt.GridBagLayout;
import java.awt.event.Action ......

HTML±êÇ©µ×²ãµÄʵÏÖÔ­Àí¡¢»úÖÆ - Java / Java SE

ΪʲôHTMLÒÔ¼°Ò»Ð©ÆäËü±êÇ©»áÏÔÊ¾Ò»Ð©ÌØ¶¨±íÏÖÐÎÊ½ÄØ£¿ÈçHTMLÖеĻ»ÐбêÇ©<BR/>ÔڵײãÊÇÔõÑùʵÏÖµÄÄØ£¿ÏÖʵµÄÔ­ÀíÊÇÊ²Ã´ÄØ
È¥W3C¹Ù·½ÍøÕ¾ÉÏ£¬¿´¿´°É£¡ÎÒÏëÒ»¿´Äã¾ÍÃ÷°×ÁË

ÎҲºͱàÒëÔ­ÀíÓйأ¬ä¯ÀÀÆ÷Àï¿É ......

javaÖеÄ×¢½â¿ÉÒÔÓÐÄÄЩ£¿ - Java / Java EE

È磺 @superwaring("unchecked");
Õâ¸öÀïÃæ¶¼¿ÉÒÔÈ¡ÄÄЩֵ°¡£¬»¹ÓÐÀàËÆµÄ @superwaring±êÇ©ÓÐÄÄЩ°¡
ûÓùý¡£¡£

¿´jeeµÄapi
javax.persistenceÀï
@superwaring("unchecked");Ö»ÊǺöÂÔ ......

¹ØÓÚJavaºÍasp - Java / Java SE

´ó¼ÒºÃ£¬ÎÒÏÖÔÚÓÐÒ»¸öÓÃaspдµÄÁÄÌìÊÒ£¬ÏÖÔÚµÄÏëÌí¼ÓÒ»¸ö¹¦ÄÜ£¬¾ÍÊǵ±ÓÐÈËÉÏÏßµÄʱºò£¬·¢³öÌáʾ£¬±ÈÈçÉùÒôÏìһϣ¬ÏÖÔÚÏëÓÃjavaʵÏÖÕâ¸ö¹¦ÄÜ£¬ÇëÎÊ´ó¼ÒÔõôʵÏÖ£¿
ллÁË£¬ÎÒ»á¼Ó·ÖµÄ
aspºÍjavaÕûºÏµ½Ò»ÆðÈ¥£¿ºÎ±Ø ......

javaÖд«Öµ - Java / Web ¿ª·¢

¾ÍÊǼòµ¥µÄ´«ÖµºÍȡֵ
ÇëÎÊÂ¥Ö÷ÏëÎÊʲô£¿

jspÒ³Ãæ²ÉÓÃ±íµ¥»òÕßjavabean´«Öµ¶¼¿ÉÒÔ£¬Ê¹ÓÃrequest.getParameter()»ñµÃʹÓÃ±íµ¥´«¹ýÀ´µÄÖµ¡£

ÎÊÎÊÌ⣬ÏȰÑÎÊÌâ˵Çå³þµã£¡£¡ ÎÊÌâ̫ģºý£¡£¡

ÎÊÎÊÌ⣬ÏȰÑÎ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ