当前位置:网站首页>Gbase8s database set connection statement
Gbase8s database set connection statement
2022-07-22 18:10:00 【Like to eat radish ice cold】
Use SET CONNECTION Statement to re-establish the connection between the application and the database environment , And make the connection current
Connect . You can also accompany DORMANT Option uses this statement to put the current connection to sleep . Please use GBase 8s
ESQL/C Use this statement .
usage
You can use it. SET CONNECTION Make the dormant connection the current connection , Or hibernate the current connection .
SET CONNECTION Not a valid prepared statement .
Make the dormant connection the current connection
If you use without DORMANT Option SET CONNECTION sentence , be connection Must indicate sleep connection
Pick up . A dormant connection is a connection that has been established but is not the current connection .
No DOMANT Option SET CONNECTION Statement to make the specified dormant connection the current connection . Apply the specified
The connection must be dormant . When the statement executes , The current connection becomes dormant .
In the following example SET CONNECTION Statement make connection con1 Become the current connection , And make con2 Become a dormant company
Pick up :
CONNECT TO ‘stores_demo’ AS ‘con1’;
…
CONNECT TO ‘demo’ AS ‘con2’;
…
SET CONNECTION ‘con1’;
A dormant connection has a connection context associated with it . When the application makes the dormant connection current , It is built into the database environment
The connection of , And restore its connection context .( To get more information about connection context , Please refer to at CONNECT
sentence On the page CONNECT sentence sentence .) Re establishing the connection is comparable to establishing the initial connection , Except that it typically
Avoid re authenticating licenses for users , And it avoids reallocating resources other than those associated with the initial connection . for example , Applications don't need
Prepare any statements previously prepared in the connection , There is no need to redeclare any cursors .
边栏推荐
- GBase8s数据库由数据库对象执行的对照
- RK3399平台开发系列讲解(input子系统)4.52、input子系统的实现原理
- Bigder:38/100 a misoperation problem has been solved
- Arrays类的理解学习
- mysql 如何查询Json数据里面的数据
- Logistic regression (formula derivation +numpy Implementation)
- Understanding and learning of dates
- GBase8s数据库约束模式的保持
- GBase8sUNION ALL 运算符
- GBase8s数据库SET AUTOFREE 语句
猜你喜欢
MySQL数据库结合项目实战SQL优化总结
学点编程:防失业“疫苗”
Bigder: common business terms in 36/100 report testing
Teach you to write makefile files from 0
How to carry out efficient data governance? Index management and data traceability help!
Bigder:38/100 a misoperation problem has been solved
[exception] generate guid and datetime, import test data to the database
Branch and loop statements
日期类的理解学习
Understanding and learning of dates
随机推荐
vcs与verdi学习记录
Web3 traffic aggregation platform starfish OS gives players a new paradigm experience of metauniverse
What is the routing protocol
GBase8s数据库标识连接
毕业985,工作996,也躲不开中年危机
24、 TF coordinate transformation (IV): multi coordinate transformation and coordinate system relationship view
GBase8s数据库以 SET COLLATION 指定对照顺序
GBase8s数据库SET CONNECTION 语句
【Excle】生成guid和datetime导入测试数据到数据库
1.4.1 好多好多道符(cin/cout解绑,O3优化)
二十四、TF坐标变换(四):多坐标变换及坐标系关系查看
MySQL constraints
MySQL 常用函数
超实用转型攻略:《2022央国企云原生落地实用指南》正式发布
[LeetCode]-链表-3
UART communication experiment (query mode)
Unity TextMeshPro命名空间引用及组件获取
go 切片,集合简单讲解
The problem of the result set returned by MySQL stored procedure
GBase8s数据库UNION 运算符