Access ¶ÔÏóÒѹرÕ,²Ù×÷²»ÔÊÐí!
Public Rs As New ADODB.Recordset
Public Conn As New ADODB.Connection
Private Sub Command1_Click()
Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\data.mdb;Persist Security Info=False"
Rs.CursorLocation = adUseClient
Rs.Open "Select * from Tm", Conn, adOpenKeyset, adLockOptimistic
End Sub
Private Sub Command2_Click()
Msgbox Rs.RecordCount ÕâÀï¾ÍÏÔʾ¶ÔÏóÒѹرÕÁË
End Sub
ÓôÃÆÁËÒ®£¬ÄÇλ¸ßÊÖ°ïæ¿´¿´£¡
Ìù³öµÄ´úÂëûÓÐÎÊÌ⣬Ӧ¸ÃÆäËûλÖÃÓÐÎÊÌ⣬¿´ÆäËûλÖÃÊÇ·ñÓйرÕ
Public Rs As New ADODB.Recordset
Public Conn As New ADODB.Connection
Private Sub Command1_Click()
Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\data.mdb;Persist Security Info=False"
Rs.CursorLocation = adUseClient
Rs.Open "Select * from Tm", Conn, adOpenKeyset, adLockOptimistic
Rs.MoveFirst
Rs.MoveLast
MsgBox Rs.RecordCount
End Sub
Ïȵ¥»÷Command1
È»ºóµ¥»÷Command2
Public Rs As New ADODB.Recordset
Public Conn As New ADODB.Connection
*********************************
Õâ¸ö¶¨ÒåÔÚ¹«¹²Ä£¿éÀïÂð£¿
Òª±£Ö¤±äÁ¿Ã»Ó
Ïà¹ØÎÊ´ð£º
<?php
include("adodb/adodb.inc.php");
$db = &NewADOConnection("access");
$access = realpath("Data.mdb");
$dsn = "Provider=Microsoft.J ......
ÔÚAccessÈí¼þÀ¿ÉÒÔÖ±½ÓÉèÖÃÈÕÆÚΪNow(),ºÃÏñÊÇÕâÑù°É¡£
ͨ¹ýsqlÓï¾ä£¬ALTER TABLE [article] ADD [date] datetime
µ«ÊÇÖ±½ÓÔÚºóÃæ¼ÓNow()£¬½á¹û³ö´í£¬Ôõôͨ¹ýsqlÓï¾äÖ±½ÓÉèÖóɵ±Ç°ÈÕÆÚ£¬¶ø²»ÓÃÍùÀïÃæ¼Ó£¿ ......
ÎÒÓÐÒ»¸ö±í,
´óÖ½ṹʽÕâ¸öÑù×ÓµÄ
id itname fenlei1id fenlei2id num
1 ÎïÆ·1 1 &n ......
ÎÒÔÚʹÓÃadox+access,ʹÓóÌÐòÌí¼ÓÐÂÁеÄʱºò×ÜÊdzöÏÖ´íÎó,¶¼ÓÐÄÄЩÐèҪעÒâµÄѽ,лл!
ÎҵĴúÂëÊÇÕâÑùµÄ!
C/C++ code:
CoInitialize (NULL);
bsSQL = ...(Êý¾Ý¿âÁ¬½Ó×Ö·û´®)
m ......
select max(classname) as classname,max(parentpath) as parentpath,max(rootid) as rootid,max(classid) as classid from prodclass where parentpath like '%0,3%' and Child=0 group by classname order ......