当前位置:网站首页>Gbase8s database for read only clause
Gbase8s database for read only clause
2022-06-29 12:18:00 【Like to eat radish ice cold】
FOR READ ONLY Clause
Please use FOR READ ONLY Keyword to specify as SELECT Statement Declares Select A cursor is a read-only cursor . only
A read cursor is a cursor that cannot modify data . This section provides information about FOR READ ONLY Clause :
When do you have to use FOR READ ONLY Clause
For the use of FOR READ ONLY Clause SELECT Syntactic restrictions on sentences
Use as read-only FOR READ ONLY Clause
Usually , You don't have to SELECT The statement includes FOR READ ONLY Clause . According to the definition ,SELECT It is a read-only operation
do , therefore FOR READ ONLY Clauses are usually unnecessary . However , In some circumstances , You must be in SELECT
The statement includes FOR READ ONLY keyword .
In conformity with ANSI In the database of , By default ,Select The cursor is update The cursor .update Cursors can be fixed
Change the cursor of data . these update Cursors are incompatible with the read-only mode of the database . for example , in the light of customer_ansi
This of the table SELECT Statement failure :
EXEC SQL declare ansi_curs cursor for
select * from customer_ansi;
The solution is in your Select The cursor includes FOR READ ONLY Clause . The read-only cursor specified in this clause is related to the database
Is compatible with read-only mode . for example , The following is for customer_ansi Tabular SELECT FOR READ ONLY Sentence into
work :
EXEC SQL declare ansi_read cursor for
select * from customer_ansi for read only;
DB-Access With Select The cursor executes all SELECT sentence , therefore , You must be read-only in all accesses that comply with ANSI
Data in the database specified in the query FOR READ ONLY.FOR READ ONLY Clause results in DB-Access take
SELECT The cursor of the statement is declared as a read-only cursor .
To get more information about 0 Level backup information , see also GBase 8s Backup and recovery guide . To get information about Select The cursor 、
Read only cursors and update Cursor information , see also DECLARE sentence .
And FOR READ ONLY Clause incompatible Syntax
If you try at the same SELECT The statement includes FOR READ ONLY Clause and FOR UPDATE Clause , Then
SELECT Statement failure . To get information about not including FOR READ ONLY Clause SELECT Statement Declares a read-only cursor
Information about , see also DECLARE sentence .
边栏推荐
- 力扣每日一题-第31天-13.三角形的最大周长
- JVM之方法区
- GBase8s数据库select有ORDER BY 子句
- [pbootcms template] composition website / document download website source code
- Titanium dynamic technology: our Zadig landing Road
- Jerry's manual pairing method [chapter]
- 牛顿不等式
- ERP preparation of bill of materials Huaxia
- What are outer chain and inner chain?
- 杰理之关于 TWS 配对方式配置【篇】
猜你喜欢
随机推荐
GBase8s数据库FOR UPDATE 子句
百度云盘不限速下载大文件(2021-11亲测有效)
杰理之关于 TWS 交叉配对的配置【篇】
Pro test! Centos7 deploy PHP + spool
在校生的编程故事
Codeforces Round #803 (Div. 2)
Embedded database development programming (IV) -- DDL, DML
Jerry's about TWS pairing mode configuration [chapter]
ERP preparation of bill of materials Huaxia
cmake 报错
初次使用 eolink 感受
【JUC系列】同步工具类之ThreadLocal
Go高级工程师必修课 | 真心建议你来听听,别错过~
大家有没有觉得学机械的人很可怕?
Li Kou daily question - day 31 -13 Maximum perimeter of triangle
正大期货主账户留4行情软件用的什么?
Easy express: we use Zadig to realize 10000 times of construction and deployment, smart operation and maintenance, and release development productivity
Engineering practice behind dall-e 2: ensure that the output of the model complies with the content policy
GBase8s数据库select有ORDER BY 子句3
参加2022年杭州站Cocos Star Meetings







