ÎÒ¶Ô±íÉèÖÃÁË3¸öÖ÷¼ü¡£¡£¡£Ö»ÊÇΪÁËͨ¹ý²âÊÔµÄÒ»ÖÖд·¨¡£
ÎÒ¸ú×ÙÁËÖ´ÐУ¬ÔÚµã»÷°´Å¥Ö´ÐвåÈë×îºóÒ»Ìõ¼Ç¼ʱ³ÌÐò²¶»ñµ½Ò»¸öÒì³££¬È»ºóAfxMessageBox(e.Description());
¿ÉÊÇÎÒ´ò¿ªÊý¾Ý¿â²é¿´Õû¸ö±í£¬ËùÓмǼ¶¼ÔÚ°¡£¡µ÷ÊÔÁË°ëÌìҲûʲôͷÐ÷£¬ÉÏÀ´ÎÊÎÊ´ó¼Ò¡£
лл¸÷λÁË
C/C++ code:
try
{
szSQL.Format("insert into midi values('%s','%s','%s','%s','%s')",
midi_time,midi_channel,midi_no,midi_vel,m_filename);
}
ÕâÊDzåÈëµÄsqlÓï¾ä.
Ī³ÁĪ³Á¡£¡£¡£
¿´¿´Òì³£±¨µÄʲôÐÅÏ¢£¿
szSQL.Format("insert into 'midi' values('%s','%s','%s','%s','%s')",
midi_time,midi_channel,midi_no,midi_vel,m_filename);
Ç°±²£¬Õâ¸öÊDZíÃ÷¡£¡£Ò²Òª¼ÓÒýºÅÂð£¿
Ö÷¼üÖظ´
¶¼ÖªµÀÊÇÖ÷¼üÖظ´ÁË»¹²»ÖªµÀÔõô½â¾ö£¿
¿ÉÊÇÖ÷¼üûÓÐÖظ´°¡£¡ÎÒΪÁ˲»Öظ´¶¨ÒåÁ˶à¸öÖ÷¼ü
szSQL.Format("insert into 'midi' values('%s','%s','%s','%s','%s')",
midi_time,midi_channel,midi_no,midi_vel,m_filename);
Õâ¸ö¼ÓÁË¡®¡¯¾Íʧ°ÜÁË¡£¡£
ÊDz»ÊÇÉèÁË×ÔÔ
ÎÒÓÃAccessÊý¾Ý¿â×öÁËÒ»¸öͼÊéÊý¾Ý¿â£¬ÀïÃæÓÐÒ»¸ö×Ö¶ÎÊÇISBN£¬¾ÍÊÇISBNºÅ£¬µ«ÊÇÖ»µÄÒ»×Ü·ÖͼÊéдµÄISBNºÅ£¬ÓеÄûд£¬Ð´µÄÄÇÒ»²¿·ÖÓеÄISBNÊÇÖظ´µÄ£¬ÄÜ·ñÓÃSQLÓïÑÔ°ÑÖظ´µÄ¹ýÂ˵ô£¬µ«Ã»Ð´ISBNºÅµÄͼÊé²»ÄܹýÂ˵ô£¬È ......
ÓÐÒ»¸öÊý¾Ý¿âÀïÖ»ÓÐ2WÌõÊý¾Ý²»µ½£¬È´ÓÐ500MÄÇô´ó,Ôõô»ØÊ°¡£¿ÊÇACCESSµÄÊý¾Ý¿â¡£ºóÀ´ÎÒ°ÑACCESSµ¼Èëµ½MSSQLÖУ¬Ò²Õ¼ÓÃÁË500M×óÓҵĿռ䣬Èç¹ûѹËõÊý¾Ý¿âÄØ£¿Çë¸ßÊÖÖ¸µã
ѹËõÊý¾Ý¿â£¿ÄÜ×öµ½Ã´...
ÆÚ´ý¸ßÈËÖ¸µã ÎÒ ......
vcÖÐÓÃodbcµÄ·½·¨·ÃÎÊaccessÊý¾Ý¿â£¬Óõ½ÁËcdatabaseÀàºÍcrecordsetÀà¡£Êý¾ÝÔ´ÔÚ´°¿Ú³õʼ»¯µÄʱºò±»´ò¿ªg_datasource.Open("data",FALSE,FALSE); µã»÷Ò»¸ö°´Å¥Æô¶¯Ò»¸ö¶¨Ê±Æ÷£¬ÔÚ¶¨Ê±Æ÷ÄÚÍê³ÉÒÔϲÙ×÷£¬¶¨ ......
rt£¬ÎÒÊÔÁËÍøÉÏÖ±Á¬AccesÊý¾Ý¿âµÄ·½·¨,windowsÏÂûÓÐÎÊÌâ,µ«ÊÇÔÚlinuxϲ»ÐУ¬ËÄܸøµãÌáʾ£¿Ð»Ð»
ÄãÔõôÁ¬µÄ£¿
AccesÊý¾Ý¿â..
ÄãÔõôÁ·µÄÄØ£¿
Java code:
static String DBDRIVER = "sun.jd ......