C# ¸üÐÂaccessÎÊÌ⣡´óÏÀÇë½ø
1.ÕâÑù¿ÉÒÔ£º
command.CommandText = @"Update college Set name='mick' where ID=" + textBox3.Text;
2.ÕâÑùÈ´²»ÐУº
command.CommandText = @"Update college Set name=" + textBox1.Text + @"where ID=" + textBox3.Text;
´íÎóÐÅÏ¢£º
δ´¦ÀíµÄ¡°System.Data.OleDb.OleDbException¡±ÀàÐ͵ÄÒì³£³öÏÖÔÚ System.Data.dll ÖС£
ÆäËûÐÅÏ¢: Óï·¨´íÎó (²Ù×÷·û¶ªÊ§) ÔÚ²éѯ±í´ïʽ 'mickwhere ID=1' ÖС£
3.ÕâÑùÈÔÈ»²»ÐУº£¨whereÇ°Ãæ¼ÓÁ˸ö¿Õ¸ñ£©
command.CommandText = @"Update college Set name= " + textBox1.Text + @" where ID=" + textBox3.Text;
´íÎóÐÅÏ¢£º
δ´¦ÀíµÄ¡°System.Data.OleDb.OleDbException¡±ÀàÐ͵ÄÒì³£³öÏÖÔÚ System.Data.dll ÖС£
ÆäËûÐÅÏ¢: ÖÁÉÙÒ»¸ö²ÎÊýûÓб»Ö¸¶¨Öµ¡£
ÇëÎÊÓ¦ÈçºÎ´¦Àí£¿
¼± ¶àл£¡£¡£¡£¡
2.ÕâÑùÈ´²»ÐУº
command.CommandText = @"Update college Set name=" + textBox1.Text + @"where ID=" + textBox3.Text;
´íÎóÐÅÏ¢£º
δ´¦ÀíµÄ¡°System.Data.OleDb.OleDbException¡±ÀàÐ͵ÄÒì³£³öÏÖÔÚ System.Data.dll ÖС£
ÆäËûÐÅÏ¢: Óï·¨´íÎó (²Ù×÷·û¶ªÊ§) ÔÚ²éѯ±í´ïʽ 'mickwhere ID=1' ÖС£
˵µÄºÜÇå³þÁË, Óï·¨´íÎó name='" + textBox1.Text + "' where ID=" whereÇ°Ãæ¼Ó¿Õ¸ñ,textÄÚÈÝÓÃÒýºÅ
ÊÔÊÔÂ¥Éϵķ½·¨£¬°Ñµ¥ÒýºÅ°üº¬ÔÚ×Ö·û´®ÀïÃæ¡£
textBox1.Text ×Ö·û´®Ç°ºó¼Ó µ¥ÒýºÅ:
command.CommandText = @"U
Ïà¹ØÎÊ´ð£º
ÍøÉÏ¿´Á˺ܶ࣬ºÃÏñÕâÑùµ÷ÓúܺãºExcel.Application();
µ«ÊÇÐèÒªÒýÈëʲôÃüÃû¿Õ¼ä»òÕßdll²ÅÄÜÔËÐÐExcelÕâ¸öÀàÄØ£¿
Excel.dll
Excel.dllÔÚExcel°²×°³ÌÐòÏ£¬
using Microsoft.Office.Interop.Excel;
......
£¨1£©string ConnString = "server=localhost;integrated security=sspi;database=pubs;";
£¨2£©string strConnection="user uid=sa;pwd=123456;Database=test;Server=test;Connect ......
ÎÒÓÃAccessÊý¾Ý¿â×öÁËÒ»¸öͼÊéÊý¾Ý¿â£¬ÀïÃæÓÐÒ»¸ö×Ö¶ÎÊÇISBN£¬¾ÍÊÇISBNºÅ£¬µ«ÊÇÖ»µÄÒ»×Ü·ÖͼÊéдµÄISBNºÅ£¬ÓеÄûд£¬Ð´µÄÄÇÒ»²¿·ÖÓеÄISBNÊÇÖظ´µÄ£¬ÄÜ·ñÓÃSQLÓïÑÔ°ÑÖظ´µÄ¹ýÂ˵ô£¬µ«Ã»Ð´ISBNºÅµÄͼÊé²»ÄܹýÂ˵ô£¬È ......
ÈçÌâÔÚÎÒ´ò¿ªaccessÐ޸ĵÄʱºò±¨´í
ÎÒ×°µÄGhost µÄXP°æ sp3µÄ²¹¶¡
´íÎóÇ©Ãû
AppName: msaccess.exe AppVer: 11.0.8166.0 AppStamp:46437912
ModName: pintlgnt.ime&n ......