AccessÊý¾Ý¿â¡°×Ô¶¯±àºÅ¡±×ֶιéÁã
ÔÎÄ£ºhttp://blog.sina.com.cn/s/blog_5fdcf5c90100fher.html
AccessÊý¾Ý¿â“×Ô¶¯±àºÅ”×ֶιéÁã
AccessÊý¾Ý¿â“×Ô¶¯±àºÅ”Êý¾ÝÀàÐÍÊÇÒ»¸ö·Ç³£ÊµÓõÄÀàÐÍ£¬Ëü¿ÉÒԺܷ½±ãµØ°ïÖúÎÒÃÇÍê³É±êʶ²»Í¬¼Ç¼IDµÄ¹¤×÷¡£µ«ÊÇÓÉÓÚJETÒýÇæµÄÌØÐÔ£¨SQL serverʹÓÃT-SQL£©£¬µ±ÎÒÃÇÔÚAccessÊý¾Ý¿âijÕűíÖÐÖ´ÐÐÁËɾ³ýËùÓÐÊý¾ÝµÄ²Ù×÷ºó£¬±»ÓÃÀ´±êʶΨһIDµÄ×ֶν«²»ÔÙ¹éÁ㣨´ÓÍ·¿ªÊ¼¼ÆÊý£©£¬¶øÊÇ»á¼ÌÐøÑÓÐøÉÏ´ÎIDµÝÔö¼ÆÊý£¬ÎÒÃÇ¿ÉÒÔÓÃÈô¸ÉÖÖ·½·¨½â¾öÕâÑùµÄÎÊÌ⣬ÒÔϽáºÏASPÍƼöÁ½ÖÖ·½·¨£¨ÒÔÏ·½·¨¶¼Êǽ¨Á¢ÔÚ¿ÕÊý¾Ý±íµÄ“×Ô¶¯±àºÅ”¹éÁãµÄÇ°ÌáÏ£©£º
µÚÒ»ÖÖ£ºÑ¹ËõÊý¾Ý¿â
ÓùýAccessµÄÅóÓÑÓ¦¸Ã¶¼ÖªµÀÔÚAccessµÄ¹¤¾ßÀ¸ÉÏÎÒÃÇ¿ÉÒÔͨ¹ý£º
µã»÷“¹¤¾ß”=>“Êý¾Ý¿âʵÓù¤¾ß”=>“ѹËõºÍÐÞ¸´Êý¾Ý¿â”À´Íê³É¶ÔÊý¾Ý¿âµÄѹËõºÍÐÞ¸´¹¤×÷£¬µ±ÕâÏ×÷Íê³Éʱ£¬Access¸÷¿ÕÊý¾Ý±íµÄ“×Ô¶¯±àºÅ”×Ö¶ÎÒ²»á×ö¹éÁã²Ù×÷¡£
¶øÎÒÃÇÒ²¿ÉÒÔÓÃASPÀ´Íê³ÉÕâÏ×÷£¬ÒÔÏÂÊÇѹËõÊý¾Ý¿âÖ÷ÒªSUB£º
<%
Sub CompactDB(strDBFileName)
Set fso = CreateObject("Scripting.FileSystemObject")
Dim strOldDB
strOldDB = Server.MapPath(strDBFileName)
Dim strNewDB
strNewDB = Server.MapPath("New" & strDBFileName)
If fso.FileExists(strOldDB) Then
'ѹËõÊý¾Ý¿â
Set jro= Server.CreateObject("JRO.JetEngine")
strPvd = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
jro.CompactDatabase strPvd & strOldDB , strPvd & strNewDB
set jro= Nothing
'ɾ³ý¾ÉµÄÊý¾Ý¿âÎļþ
fso.DeleteFile strOldDB
' ½«Ñ¹ËõºÃµÄÊý¾Ý¿âÎļþ¿½±´»ØÀ´
fso.MoveFile strNewDB, strOldDB
Response.Write "Êý¾Ý¿âѹËõÍê±Ï!"
Else
Response.Write "ÕÒ²»µ½Ö¸¶¨µÄÊý¾Ý¿âÎļþ!"
End If
Set fso = Nothing
End Sub
%>
ÎÒÃÇ¿ÉÒÔºÜÇáËɵØʹÓÃ<%Call CompactDB("yourdb.mdb")%>Íê³Éµ÷Óá£
Ïà¹ØÎĵµ£º
ÓÉÓÚ³ÌÐòÐèÒª°ÑSQL SERVER ÀïµÄÊý¾Ýµ¼Èëµ½ACCESSÀï.
¸Õ¿ªÊ¼Ê¹ÓÃDataSetÀ´Ñ»·.
Êý¾ÝÁ¿ÉÙµÄʱºò»¹Ëã¿ÉÒÔÓ¦¸¶µÄ¹ýÀ´.
µ«µ±Êý¾Ý¶àµÄʱºò.
»á±¨´í"λÖôíÎó"
ÔÚÍøÉÏËÑÑ°Ò»·¬.ÕÒµ½Ò»¸ö·½·¨.
ʹÓÃinsert into openrowset
½Ó×Å´íÎóÒ»¸ö½ÓÒ»¸öµÄÀ´..
"²åÈë´íÎó: ÁÐÃû»òËùÌṩֵµÄÊýÄ¿Óë±í¶¨Ò岻ƥÅä¡£"
"δÄÜÕÒµ½ OLE DB Ì ......
×òÍíÔÚ×öAccessÊý¾Ý¿â¿ª·¢Ê±Óöµ½Ò»¸ö¼òµ¥µÄÄ£ºý²éѯÎÊÌ⣬ÔÚaccess2007ÀïÃæ¿ÉÒÔ²é³öÀ´£¬µ«ÓÃC#2.0²éѯ¾ÍÊDz鲻³öÀ´¡£
ºóÀ´ÊÔ³öÀ´ÁË£¬ÔÀ´ ÊÇjetÓï·¨µÄÎÊÌ⣺
ÔÚAccessÖУ¬Ä£ºý²éѯÓà * ºÅ£¬Èç select * from T_PO where po_NO like '*8*'
µ«ÔÚC#³ÌÐòÀïÃæдµÄʱºòÒªÓà % ºÅ£¬¼´ select * from T_PO where po_NO like '%8% ......
ת×Ô
http://topic.csdn.net/t/20050110/09/3711952.html
accessÖÐʱ¼äÒªÓÃ#,²»ÊÇË«ÒýºÅ
select * from kc where rq < #2000-01-01# and rq>#2002-01-01#
²»ÒªÓÃbetween,ËüµÄЧÂÊÌ©µÍ
ʹÓÃ# ¶ø²»ÊÇ ......
JDBCÁ¬½ÓMySQL
¼ÓÔؼ°×¢²áJDBCÇý¶¯³ÌÐò
Class.forName("com.mysql.jdbc.Driver");
Class.forName("com.mysql.jdbc.Driver").newInstance();
JDBC URL ¶¨ÒåÇý¶¯³ÌÐòÓëÊý¾ÝÔ´Ö®¼äµÄÁ¬½Ó
±ê×¼Óï·¨£º
<protocol£¨Ö÷ҪͨѶÐÒ飩>:<subprotocol£¨´ÎҪͨѶÐÒ飬¼´Çý¶¯³ÌÐòÃû³Æ£©>:<da ......
µ±È»£¬altera FPGA µÄJTAGºÍASÏÂÔØģʽÊǵÃÕâô½Ó¡£µ«ÊÇ£¬ÎÒÓиöСÌáÐѸø¸÷λ£ºÇë×¢ÒâVCCAµÄ¶¨Ò壬VCCAÊÇͬʱ¸øFPGAËøÏ໷·¹©µçµÄ2.5V¡£ÔÚËøÏà»·Òý½ÅÉÏÎÒ½ÓÓÐ0.01uFµÄµçÈÝ£¬¿ÉÒÔÏëÏóËüÄܹ»ÒƳý´óÔ¼100MHzÒÔÉϵÄÉäƵÄÜÁ¿£¬Òò´Ë¶ÔJTAGÏÂÔØ¿ÚµÄÆäÉÏÀ×÷ÓõÄVCCAÓ°Ïì²»´ó£¨JTAGÅäÖÃģʽµÄ´ø¿í²¢²»¸ß£©£¬0.01uFµÄµçÈݲ»¿ÉÄÜ¶Ô ......