2.注册数据库插件DL.dll
3.粘贴代码 function button0_click()
//这里添加你要执行的代码
var path=sysgetcurrentpath()
var DL=com("DL.DLdb")
//---------------------------------------------------------------------------------
//SQLite数据库
//var FilePath = path&"测试用的部分数据库文件\\test.db"
var FilePath ="d:\\test.db"
messagebox(FilePath)
var ret=DL.ConnectMyDB("SQLite", "", "12345678", "",FilePath, 0)
if(ret=1)
var s1=DL.GetTable("SELECT * FROM people limit 0,10 ")
messagebox(s1)
var s2=DL.InsertSQL("insert into people(myname) values(1)")
messagebox(s2)
var s3=DL.UpdateSQL("update people set myname ='givl2' where id = 3")
messagebox(s3)
var s4=DL.DeleteSQL("delete from people where id = 3")
messagebox(s4)
var s5=DL.ExecSQL("insert into people VALUES('1','1','2','3','1','2')")
messagebox(s5)
end
ret = DL.CloseMyDB
messagebox(ret)
end //-------------------------------------------------------------------------------------------------------------------------------