AccessÖÐSQLÓï¾ä²ÎÊýµ÷ÓõÄÎÊÌâ
SQLÓï¾äÖÐÒýºÅÌ«¶à£¬ÏëÓòÎÊýµ÷Óõķ½Ê½¡£¾ÙÀýÈçÏ£º sql="update ±íÃû set ×Ö¶Î1=@²ÎÊý1"£¬È»ºó¼ÓÉÏcommand.Parameters.Add("@²ÎÊý1",²ÎÊý1),Ö´ÐÐÖ®¡£ µ«ÊÇÔÚÌõ¼þÖпɼÓÈë²ÎÊýÂð£¿Èçʵ¼ÊÎÊÌâ update ±íÃû set ¡£¡£¡£¡£¡£Where DateDiff('d',datetime,@DateTimePicker.Value)=0 È»ºóÔÙ¸øcommand.Parameters.Add("@DateTimePicker.Value",DateTimePicker.Value)ÕâÑù×ö¿ÉÒÔÂ𣿠»òÕß Select ¡£¡£¡£¡£from ±í1 where DateDiff('d',datetime,@DateTimePicker.Value)=0 È»ºóÔÙ¸øcommand.Parameters.Add("@DateTimePicker.Value",DateTimePicker.Value)ÕâÑù×ö¿ÉÒÔÂ𣿠ע:DateTimePicker.ValueÊÇdatetimeÀàÐÍ¡£ÆäÖеÄupdate»òSelectÓï¾äÓÖÊÇǶÌ×µÄSQLÓï¾ä
ÆÚ´ý´óʦµÄ¼û½â£¬AccessÈçºÎÒýÓòÎÊý£¬ÈçºÎ¸ø²ÎÊý¸³Öµ£¬ÈçºÎ²âÊÔ¸³ÖµÊÇ·ñ³É¹¦ÄØ C# code: string sql = "update wc_subject set sub_amount=sub_amount+1, sub_date=? where sub_id=?"; OleDbCommand command = new OleDbCommand(sql, connection); command.Parameters.Add("?", OleDbType.Date).Value = userName; command.Parameters.Add("?", OleDbType.Integer).Value = 1;ÒýÓà C# codestring sql="update wc_subject set sub_amount=sub_amount+1, sub_date=? where sub_id=?"; OleDbCommand command=new OleDbCommand(sql, connection); command.Parameters.Add("?", OleDbType.Dat
Ïà¹ØÎÊ´ð£º
type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jas ......
ÎÒÒ»¸öÏîÄ¿£¬Óиö²åÈë²Ù×÷£¬¾ßÌåÊÇÕâÑùµÄ£º ÎÒÓнø»õÐÅÏ¢±í¡£ÔÚ³ö»õʱѡÔñÏàÓ¦µÄ½ø»õÐÅÏ¢£¬ÊäÈëÊýÁ¿£¬Ñ¡Ôñ²¿Ãź󣬵㱣´æ°´Å¥£¬ÓÉÓÚÍøÂçÑÓʱ£¬µãÒ»ÏÂûÓз´Ó³£¬ÓÚÊÇÓû§¾ÍÓÖµãһϣ¬µ¼ÖÂÒ»´Î²åÈëÁËÁ½Ìõ¼Ç¼: Àý£º
......
ÏÖÔÚÓÐÁ½ÕÅ±í£ºÎÄÕÂÖ÷±íA(articleId,articleTitle)£¬ÎÄÕÂÆÀÂÛ±íB(commentId,articleId,commentTitle) ÏÖÔÚÎÒÏëʵÏÖÕâÑùµÄ¹¦ÄÜ£ºÁгöÎÄÕÂÁÐ±í£¬ÆäÖÐÿƪÎÄÕ±êÌâÏÂÃæÁгö´ËÎÄÕµÄǰ2¸öÎÄÕÂÆÀÂÛ£¬ÇëÎÊsqlÓï¾äÔõôд°¡ ......
select count(1) from FX_RETURNBOOKCHECKLIST fxreturnbo0_ where fxreturnbo0_.BOOKID='164 ' AND fxreturnbo0_.RETURNID='00025.S0000001' ÉÏÃæÒ»¸ö¼òµ¥µÄSQL,Ö´ÐÐʱ¼ä2.6à ......
ÈçºÎÔÚSQL2005ÖÐÉ趨¶¨Ê±×÷Òµ£¬±ÈÈç˵¶¨Ê±ÇåÀíijЩ±íµÄÊý¾Ý£¬ »òÕßÊǶ¨Ê±µÄ½«Ä³Ð©±íµÄÊý¾Ýµ¼³öexcel£¡ ÔÚÏߵȴý£¬¼±¼±¼±£¬×îºÃÊÇÏêϸ²½Ö裡 ֮ǰÎÒ×öµÄ×÷ÒµÓеãÎÊÌ⣡ °ïUP ²Î¿¼:http://hi.baidu.com/toiota ......