欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

vbs mysql

程序员文章站 2022-03-04 20:31:16
...
Dim dbconn, connect

connect = "Driver={MySQL ODBC 5.6.20 Driver};Server=localhost;PORT=3306;Database=test;User=root;"

Set dbconn = CreateObject("ADODB.Connection")
Set myCommand = CreateObject("ADODB.Command" )

dbconn.Open connect

dbconn.Execute  "DELETE FROM test_2"
dbconn.Close