TC官方合作论坛

标题: 大龙SQLITE数据库插件,陆续更新中。。。。 [打印本页]

作者: ciiny2017    时间: 2017-10-13 07:27
标题: 大龙SQLITE数据库插件,陆续更新中。。。。
//按键插件调用方式
ret = Plugin.DL.ConnectSqliteDB("D:\test.db", "")
If ret = 1 Then
       // s = Plugin.DL.GetTable("SELECT * FROM test limit 0,10 ")
       // MessageBox s
       // s = Plugin.DL.GetStr("select * from test")
       // MessageBox s
        s = Plugin.DL.InsertSQL("insert into people(myname) values(1)")
        MessageBox s        
        s = Plugin.DL.UpdateSQL("update people set myname ='givl' where id = 1")
        MessageBox s
        s = Plugin.DL.DeleteSQL("delete from people")
        MessageBox s
        s = Plugin.DL.ExecSQL("insert into people VALUES('1','1','2','3','1','2','3','1','2','3','3')")
        MessageBox s
        ret = Plugin.DL.CloseSqliteDB         
End If


//VBS调用方式
Set DL = createobject("DL.DLsoft")
ret = DL.ConnectSqliteDB("D:\Demo.db3", "")
If ret = 1 Then
        s =DL.GetTable("select * from People")
        MessageBox s
        s1 = DL.GetStr("select count(*) from people")
        MessageBox s1
        ret = DL.CloseSqliteDB         
End If

TC调用很简单 就不罗列了 基本上和VBS差不多
陆续更新中。。。请加我QQ了解1958059044
我没权限 所以加我QQ发出来




作者: ciiny2017    时间: 2017-10-13 07:28
h t t p s ://pan.baidu.com/s/1ctYzrK
作者: ciiny2017    时间: 2017-10-13 07:29
以上就是百度网盘地址,不懂的随时密我
作者: chen1882729    时间: 2017-10-13 11:06
自带就有这个功能
作者: ciiny2017    时间: 2017-10-13 14:42
自带的不太好用

作者: ciiny2017    时间: 2017-10-14 03:22
最新版大龙数据库插件,支持所有数据库的读取 增删改查等功能,陆续完善中, 网盘地址: h t t p s://pan.baidu.com/s/1o861oy2
按键调用
//按键插件调用方式 MySQL    数据库类型,账号,密码,IP,数据库名,端口
ret = Plugin.DL.ConnectMyDB("MySQL", "root", "1234345fdsa", "localhost", "studb", 3306)
If ret =1 Then
       s = Plugin.DL.GetTable("SELECT * FROM 本地学员 limit 0,10 ")
       MessageBox s
       //s = Plugin.DL.InsertSQL("insert into 本地学员(stuname) values(1)")
       //MessageBox s        
       //s = Plugin.DL.UpdateSQL("update 本地学员 set stuname ='givl' where id = 1")
       //MessageBox s
      // s = Plugin.DL.DeleteSQL("delete from 本地学员 where id = 1")
       //MessageBox s
       //s = Plugin.DL.ExecSQL("insert into 本地学员 VALUES('1','1','2','3','1','2')")
       //MessageBox s
       ret = Plugin.DL.CloseMyDB  
    Else
  MessageBox ret            
End If


//按键插件调用方式 SQL Server  数据库类型,账号,密码,IP,数据库名,端口
ret = Plugin.DL.ConnectMyDB("SQL Server", "cdfdsg2017", "987342dsfasdf", "136.125.22.55", "dbdsf", 1433)

If ret =1 Then
       s = Plugin.DL.GetTable("SELECT top 10 * FROM whsw  ")
       MessageBox s
       //s = Plugin.DL.InsertSQL("insert into 本地学员(stuname) values(1)")
       //MessageBox s        
       //s = Plugin.DL.UpdateSQL("update 本地学员 set stuname ='givl' where id = 1")
       //MessageBox s
      // s = Plugin.DL.DeleteSQL("delete from 本地学员 where id = 1")
       //MessageBox s
       //s = Plugin.DL.ExecSQL("insert into 本地学员 VALUES('1','1','2','3','1','2')")
       //MessageBox s
       ret = Plugin.DL.CloseMyDB  
    Else
  MessageBox ret            
End If
TC的调用类似 直接可以查看参数
作者: ciiny2017    时间: 2017-10-14 16:11
请大家加QQ群:621816328 方便指导使用
作者: itcfan    时间: 2017-10-14 19:00
能不能实现sqlite数据库加密?

https://my.oschina.net/kjpioo/blog/148230
作者: ciiny2017    时间: 2017-10-15 01:15
最新版通用所用数据库
网盘h ttps://pan.baidu.com/s/1kUJiyhT
作者: rxuehao    时间: 2017-10-18 23:06
咋就失效了呢




欢迎光临 TC官方合作论坛 (http://bbs.52tc.co/) Powered by Discuz! X3.1