链接
1.使用
[user[:password]@][net[(addr)]]/dbname[?param1=value1¶mN=valueN]
_ "github.com/aliyun/go-driver-ob"
)
func query() {
os.Setenv("NLS_LANG", "AMERICAN_AMERICA.AL32UTF8")
log.SetFlags(log.Lshortfile | log.LstdFlags)
db, err := sql.Open("oceanbase", "name:password@tcp(address:port)/dbname")
}