五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

【按鍵精靈】連接MySQL

2023-06-23 16:55 作者:酷玩蚊仔  | 我要投稿

Set connection = CreateObject("ADODB.Connection")

//connection.Open "DSN=Mysql;UID=root;PWD=123456;PORT=3306;DATABASE=testdb;Data Source=localhost"

connection.Open "Provider=MSDASQL.1;Password=123456;Persist Security Info=True;User ID=root;Data Source=localhost;Initial Catalog=testdb"


Set recordset = CreateObject("ADODB.Recordset")


connection.BeginTrans?


SQL1 = "DELETE FROM items WHERE id = 1"

connection.Execute SQL1, resLength1

TracePrint resLength1


SQL2 = "UPDATE items SET name = '龍紋劍', price = 777 WHERE id = 2"

connection.Execute SQL2, resLength2

TracePrint resLength2


SQL3 = "INSERT INTO items(name, price) VALUES('屠龍刀', '999')"

connection.Execute SQL3, resLength3

TracePrint resLength3


TracePrint connection.Errors.Count


If connection.Errors.Count > 0 Then?

connection.RollbackTrans?

Else?

connection.CommitTrans

End If


SQL = "SELECT * FROM items"

recordset.open SQL, connection, 1


If recordset.bof And recordset.eof Then?

TracePrint "沒有記錄"

Else?

While not recordset.eof?

TracePrint recordset("id") & " " & recordset("name") & " " & recordset("price")

recordset.movenext

Wend

End If


recordset.close?

connection.close

【按鍵精靈】連接MySQL的評論 (共 條)

分享到微博請遵守國家法律
马尔康县| 廊坊市| 枣阳市| 泸定县| 札达县| 都安| 福海县| 高碑店市| 谷城县| 花莲县| 景德镇市| 临泽县| 故城县| 远安县| 黄龙县| 息烽县| 石狮市| 东台市| 陈巴尔虎旗| 平泉县| 延边| 囊谦县| 清镇市| 阿荣旗| 海淀区| 玉树县| 江安县| 永春县| 河源市| 于都县| 四子王旗| 奎屯市| 平舆县| 虎林市| 府谷县| 德化县| 沅陵县| 阿荣旗| 土默特右旗| 南投县| 肥东县|