AccessÊý¾Ý¿âÔÚC#.netϵĴ洢·¾¶ÎÊÌâ
¼´Ê¹ÎÒ½«Êý¾Ý¿â·ÅÔÚÏîÄ¿ÄÚ½¨µÄÎļþ¼ÐdbÏ£¬¿ÉÊǽøÐд洢²Ù×÷µÄʱºò£¬Êý¾Ý±íûÓÐÈκα仯¡£ºóÀ´·¢ÏÖ´¢´æ¸Ä±ä·¢ÉúÔÚbin\\debug\\dbĿ¼ÏµÄÊý¾Ý¿âÖУ¬Õâ¸öÊý¾Ý¿âÊÇÔÚ³ÌÐòÔËÐÐʱ×Ô¶¯¸´ÖƹýÈ¥µÄ£¬¿ÉÊÇΪʲô´æ´¢±ä»¯Ã»Óз´Ó¦µ½ÍâÃæÏîÄ¿ÄÚµÄÊý¾Ý¿âdbÏÂÄØ£¿ÎÒÏëÁ¬½Ó×Ö·û´®ÖÐdatasourceÖеÄdatadirectory´æÔÚһЩÐþ»ú£¬ÓÚÊÇÎÒÕÒµ½Ò»¸ö¸Ä±ä´æ´¢Â·¾¶µÄ·½·¨£¬ÒÔʵÏÖ¶ÔÊý¾Ý¿â²Ù×÷ÄÜÂäʵµ½ÄãÖ¸¶¨µÄÏîÄ¿Êý¾Ý¿âÎļþÖС£
//¸Ä±äÊý¾Ý¿â´æ´¢Â·¾¶
¡¡¡¡ string p = AppDomain.CurrentDomain.BaseDirectory;//»ñÈ¡²Ù×÷µÄÖ±½Ó·¾¶
¡¡¡¡ //ÖØÐ¶¨Î»Êý¾Ý¿â
¡¡¡¡ if (p.IndexOf("\\bin\\") > 0)
¡¡¡¡ {
¡¡¡¡ if (p.EndsWith("\\bin\\Debug\\"))
¡¡¡¡ p = p.Replace("\\bin\\Debug", "");
¡¡¡¡ if (p.EndsWith("\\bin\\Release\\"))
¡¡¡¡ p = p.Replace("\\bin\\Release", "");
¡¡¡¡ }
¡¡¡¡ if (!p.EndsWith("App_Data\\"))
¡¡¡¡ p = p + "db\\";
¡¡¡¡ p = p + "App_Data\\";//ÕâÀï¿ÉÒÔÖ¸¶¨ÏîÄ¿Êý¾Ý¿âÎļþ¼ÐÃû
¡¡¡¡ AppDomain.CurrentDomain.SetData("DataDirectory", p);
¡¡¡¡ Application.EnableVisualStyles();
¡¡¡¡ Application.SetCompatibleTextRenderingDefault(false);
¡¡¡¡Æäʵ×îºóbin\\debug\\dbÏ»¹ÊÇ»áÓÐÒ»·ÝÊý¾Ý¿âÎļþ£¬µ«ÊǽøÐеIJÙ×÷¿ÉÒÔÂäʵ·´Ó¦µ½ÍâÃæÏîÄ¿ÀïÊý¾Ý¿âÎļþÁË¡£App.configÎļþÀïµÄÁ¬½Ó×Ö·û´®Îª£ºconnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|Êý¾Ý¿âÃû.mdb"
¡£
Ïà¹ØÎĵµ£º
select top ÿҳÏÔʾµÄ¼Ç¼Êý * from topic where id not in (select top £¨µ±Ç°µÄÒ³Êý-1£©×ÿҳÏÔʾµÄ¼Ç¼Êý id from topic order by id desc) order by id desc
select top ÿҳÏÔʾµÄ¼Ç¼Êý * from topic where id not in (select top £¨µ±Ç°µÄÒ³Êý-1£©×ÿҳÏÔʾµÄ¼Ç¼Êý id from topic order by id desc) ......
ÎÒµÄϵͳÊÇubuntu6.06£¬×î½üÐÂ×°ºÃµÄmysqlÔÚ½øÈëmysql¹¤¾ßʱ£¬×ÜÊÇÓдíÎóÌáʾ:
# mysql -uroot -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
ʹÓÃÍøÉϽéÉܵķ½·¨ÐÞ¸ÄrootÓû§µÄÃÜÂ룺
# mysqladmin -uroot -p password 'newpassword'
Enter password:
m ......
ϵͳ»·¾³£ºwindows xp
Èí¼þ»·¾³£ºC£«£« builder 6.0
±¾´ÎÄ¿µÄ£ºÍê³ÉÒ»¸ö¼òÒ×È´²»Ê§»ªÀöµÄ½øÏú´æ¹ÜÀíϵͳ¡£
ÕâÊǰëÄêǰ×÷µÄÒ»¸ö¿Î³ÌÉè¼Æ£¬ÓõÄBCB+ACCESSÊý¾Ý¿âÍê³ÉµÄ£¬½çÃæÃÀ»¯ÊÇÓõÄBusinessSkinForm5.25ºº»¯°æ£¬ËüÊÇBCBµÄµÚÈý·½¿Ø¼þ£¬Ê¹ÓñȽϷ½±ã£¬ÍøÉÏÓкܶàÌׯ¤·ô¿É¹©Ï ......
set safety off
local oo,lcStr,lcMdbFile,i,x,lnFields,lcTableName,lnFieldtype,lcCurdir
lcCurdir = sys(5) + curdir()
lcNowdir = getdir()
cd (lcNowdir)
&nb ......
1 £¬¶ÔÓÚÈÕÆÚ×Ö¶Î×Ö¶Î
access±íʾΪ£º#1981-28-12#
SQLSERVER2000±íʾΪ£º''1981-02-12''
2,SQLÓï¾äÇø±ð£¬select ,update ÔÚ¶Ôµ¥±í²Ù×÷ʱ¶¼²î²»¶à£¬
µ«¶à±í²Ù×÷ʱupdateÓï¾äµÄÇø±ðACCESSÓëSQLSERVERÖеÄUpdateÓï¾ä¶Ô±È:
SQLSERVERÖиüжà±íµÄUpdateÓï¾ä:
Update Tab1
SET a.Name = b.Name
from Tab1 a,Tab2 b
Whe ......