vbscript Xojo:连接到PosgreSQL数据库

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vbscript Xojo:连接到PosgreSQL数据库相关的知识,希望对你有一定的参考价值。

//Connect to a database
Dim db as New PostgreSQLDatabase
  db.Host = "127.0.0.1"
  db.Port = 5432
  db.DatabaseName = "TestDB"
  db.UserName = "XojoUser"
  db.Password = "secret"
//Is the database connected?
If db.Connect = True then
  MsgBox "The database is connected"
Else
  MsgBox "There is an error with the database: " + db.ErrorMessage End If

以上是关于vbscript Xojo:连接到PosgreSQL数据库的主要内容,如果未能解决你的问题,请参考以下文章