当前位置:网站首页>关于使用read table 语句
关于使用read table 语句
2022-08-04 23:48:00 【月阴荒】
https://www.cnblogs.com/BruceKing/p/10716856.html
READ table 是用来遍历内表,取第一条符合条件的记录。
READ TABLE [INTO ] WITH KEY [BINARY SEARCH].
WITH KEY 中的检索条件比较符不能使用 ‘<>’ (不等于)
如果只想取得内部表中不等于某条件的一条记录,那么请使用下面的变通方法
LOOP AT itab WHERE KEY <> ‘XX’
此处取得第一条记录。
EXIT.
ENDLOOP.
如果在运行时 值为空,则统一忽略该关键字段。另外可对关键字段指定偏移量和长度。
边栏推荐
猜你喜欢
游戏3D建模入门,有哪些建模软件可以选择?
招标公告 | 海纳百创公众号运维项目
How to burn the KT148A voice chip into the chip through the serial port and the tools on the computer
NebulaGraph v3.2.0 Release Note,对查询最短路径的性能等多处优化
SQL关联表更新
直接插入排序
【SSR服务端渲染+CSR客户端渲染+post请求+get请求+总结】
三、实战---爬取百度指定词条所对应的结果页面(一个简单的页面采集器)
uniapp动态实现滑动导航效果demo(整理)
一点点读懂Thremal(二)
随机推荐
After another 3 days, I have sorted out 90 NumPy examples, and I can't help but bookmark it!
线程三连鞭之“线程的状态”
Basic web in PLSQL
NebulaGraph v3.2.0 Release Note,对查询最短路径的性能等多处优化
Handwritten Distributed Configuration Center (1)
mysql基础
uniapp horizontal tab (horizontal scrolling navigation bar) effect demo (organization)
The role of @ Import annotations as well as how to use
Security software Avast and Symantec NortonLifeLock merge with UK approval, market value soars 43%
如何写好测试用例
【无标题】线程三连鞭之“线程池”
[Cultivation of internal skills of string functions] strcpy + strcat + strcmp (1)
零基础如何入门软件测试?再到测开(小编心得)
美团二面:Redis与MySQL双写一致性如何保证?
SQL association table update
MySQL基础篇【子查询】
kernel hung_task死锁检测机制原理实现
一点点读懂Thremal(二)
App测试和Web测试的区别
小黑leetcode之旅:95. 至少有 K 个重复字符的最长子串