AccessÎÞ·¨Ê¹ÓÃtime×÷Ϊ×Ö¶ÎÃû³Æ
Õ⼸Ìì°ïͬѧ×öÒ»¸öСµÄ¹ÜÀíϵͳ£¬B/S½á¹¹µÄ£¬ÓÉÓںܾÃûÓÐ×öB/S½á¹¹µÄ¶«Î÷ÁË£¬×öµÄʱºòºÜÉúÊè¡£Ò»¸öÏÂÎ磬Óöµ½ÁËÒ»¸öÎÊÌ⣺ÍùAccessÀï²åÈëÊý¾ÝµÄʱºò£¬ÀÏÊÇÌáʾÎÒsqlÓï¾ä´íÎ󣬵«ÊǾͺÜÄÉÃÆÁË£¬ÕâÖÖsqlÓï¾äдÁ˲»ÏÂ500±éÁË°É£¬¾ÍËãÊÇ×öÃÎÒ²²»»áд´íµÄ£¬Ôõô»ØÊ£¿sqlÓï¾äÊÇÕâÑùµÄ£ºinsert into consume(mid,startTime,endTime,time,status,check) values(?,?,?,?,?,?);
Ò»Ö±ÊÔÁ˺ܶà´Î£¬µ«ÊǶ¼Ã»ÓÐÖ´Ðгɹ¦£¬µ«ÊǾÍËÀÐÄÑÛÁË£¬×ÜÊDz»ÏàÐÅ×Ô¼ºÐ´µÄsqlÓï¾äÓÐÎÊÌ⣬µ«ÊǶ¼ÎÞ¹û¡£ºóÀ´Àä¾²ÁËÖ®ºó£¬¾Í°Ñ×Ö¶ÎÒ»¸ö¸öµÄɾ³ý£¬ÔÙÒ»¸ö¸öµÄµ÷ÊÔ£¬Ö®Ç°µÄÈý¸ö×ֶζ¼¿ÉÒÔ²åÈëÊý¾Ý£¬µ«Êǵ÷ÊÔtime×ֶεÄʱºò£¬¾ÍÊDz»³É¹¦£¬Ö®Ç°ÓÃmysql»òÊÇoracleµÄʱºò¶¼Ã»ÓÐÓöµ½¹ýÕâÖÖÎÊÌ⣬¾ÍºÜÄÉÃÆÁË¡£¶¼ÊÇûÓгɹ¦£¬¾Í°Ñ×ֶλ»ÁË£¬°Ñtime¸Ä³ÉconsumeTime£¬Õâ´ÎÖ´ÐкÃʹÁË£¬¿ÉÒÔ²åÈëÊý¾ÝÁË£¬ÓÖ°Ñ×ֶλ»»ØÔÀ´µÄÃû³Æ£¬ÓÖ²»ÐÐÁË£¬ÉÏÍø²éÁËһϣ¬²ÅÖªµÀ£¬timeÊÇaccessµÄ±£ÁôÃû³Æ£¬²»ÄÜÓÃ×÷×ֶεÄÃû³Æ£¬ÔÀ´ÊÇÕâô»ØÊ¡£¿´À´²»ÄܹâÖ»»áÓÃÁË£¬µÃ¶àÁ˽âÒ»ÏÂÏà¹ØµÄÊý¾Ý¿âµÄ±£Áô×ֶΣ¬Òª²»ÒÔºóÓöµ½±£Áô×Ö¶Î×÷ΪÃû³ÆµÄʱºò¾Í»áÃþ²»×ÅÍ·ÄÔÁË¡£
ÔÚ´Ë£¬°Ñ×Ô¼ºµÄһЩÌå»á¸ú´ó¼Ò·ÖÏíһϣ¡
Ïà¹ØÎĵµ£º
Ò»¡¢´´½¨Ò»ÕÅ¿Õ±í£º
Sql="Create TABLE [±íÃû]"
¶þ¡¢´´½¨Ò»ÕÅÓÐ×Ö¶ÎµÄ±í£º
Sql="Create TABLE [±íÃû]([×Ö¶ÎÃû1] MEMO NOT NULL, [×Ö¶ÎÃû2] MEMO, [×Ö¶ÎÃû3] COUNTER NOT NULL, [×Ö¶ÎÃû4] DATETIME, [×Ö¶ÎÃû5] TEXT(200), [×Ö¶ÎÃû6] TEXT(200))
×Ö¶ÎÀàÐÍ£º
2 : "SmallInt", // ÕûÐÍ
3 : "Int", ......
ACCESSÔ¶³Ì±¸·ÝÒ»Ö±ÊǸöÁîÈËÍ·ÌÛµÄÎÊÌâ ¿´µ½Ò»¸ö²»´íµÄ±¸·Ý·½·¨ ·ÖÏíÏ£º
ÔÎĵØÖ·£ºhttp://www.cnblogs.com/catcat811/archive/2009/12/31/1637186.html
ÍøÕ¾ÓÖ¹ØÁË~~~¹ØµÃºÜͻȻ£¬Êý¾ÝÒ²À´²»¼°±¸·Ý¡£ÒòΪ¹«Ë¾Óиö²Ö¿âµÄϵͳÔÚ×âÓ÷þÎñÆ÷ÉÏ£¬Èç¹ûÍ£Á˾͵ÃÖØеã²Ö£¬ÄÇÊǺÜÀÛÈ˵ÄÊ¡£×î½üÍøվʱ³£¹Ø£¬ÕæÈÃÈËÍ·Í´¡£ÎªÁ˱Üà ......
<?php
$connstr="DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" . realpath("data.mdb");
$connid=odbc_connect($connstr,"","",SQL_CUR_USE_ODBC);
$issuetime=date("Y-m-d H:i:s");
$sql="insert into test values("","",...)";
$result=odbc_exec($connid,$sql);
if($result) echo "successful";
else ec ......
asp ÖÐÎÄÂÒÂë,asp access ÂÒÂë,asp ˢкóÂÒÂë,asp utf 8ÂÒÂë,ajax ÂÒÂë asp,asp ºº×ÖÂÒÂë,aspÂÒÂëÔõô°ì
ÓÃutf-8±àÂëÓÃÔÚеÄÍøÕ¾ÉÏ£¬²»ÏëÎÊÌ⻹Õæ¶à£¬ËùÒÔÕÒÁËЩÎÄÕ£¬Ìû×Ó£¬¿´ÁË¿´£¬µÈÏÂÓÐÓõľÍÌùÏÂÃæÁË¡£
½ñÌ죬ÎÒ¿ªÊ¼°Ñ CODEPAGE="936" ¸Ä³É CODEPAGE="65001"
°Ñcharset=gb2312¸Ä³É charset=utf-8
¿ÉÊÇ»¹ÊÇÂÒÂë ......
*
* ¹¦ÄÜ˵Ã÷:±¸·ÝºÍ»Ö¸´SQL ServerÊý¾Ý¿â
* ×÷Õß: Áõ¹¦Ñ«;
* °æ±¾:V0.1(C#2.0);ʱ¼ä:2007-1-1
* µ±Ê¹ÓÃSQL Serverʱ,ÇëÒýÓà COM×é¼þÖеÄ,SQLDMO.dll×é¼þ
* µ±Ê¹ÓÃAccessÖÐ,Çëä¯ÀÀÌí¼ÓÒýÓÃÒÔÏÂÁ½¸ödll
* ÒýÓÃC:/Progra ......