当前位置:网站首页>关于使用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.
如果在运行时 值为空,则统一忽略该关键字段。另外可对关键字段指定偏移量和长度。
边栏推荐
猜你喜欢
MySQL基础篇【聚合函数】
MySQL的安装与卸载
小黑leetcode冲浪:94. 二叉树的中序遍历
Statistical words (DAY 101) Huazhong University of Science and Technology postgraduate examination questions
SQL关联表更新
Security software Avast and Symantec NortonLifeLock merge with UK approval, market value soars 43%
NebulaGraph v3.2.0 Release Note, many optimizations such as the performance of querying the shortest path
统计单词(DAY 101)华中科技大学考研机试题
【七夕情人节特效】-- canvas实现满屏爱心
365天深度学习训练营-学习线路
随机推荐
Day118.尚医通:订单列表、详情、支付
4 - "PyTorch Deep Learning Practice" - Backpropagation
矩阵数学原理
@Async注解的作用以及如何实现异步监听机制
使用OpenCV实现一个文档自动扫描仪
Handwritten Distributed Configuration Center (1)
基于Appian低代码平台开发一个SpaceX网站
[Cultivation of internal skills of string functions] strcpy + strcat + strcmp (1)
SQL关联表更新
MYS-6ULX-IOT 开发板测评——使用 Yocto 添加软件包
KT6368A Bluetooth certification problem_FCC and BQB_CE_KC certification or other instructions
【数据挖掘概论】数据挖掘的简单描述
小黑leetcode之旅:95. 至少有 K 个重复字符的最长子串
PZK学C语言之字符串函数(一)
Implementation principle of golang coroutine
[QNX Hypervisor 2.2用户手册]10.5 vdev ioapic
KT148A语音芯片怎么烧录语音进入芯片里面通过串口和电脑端的工具
Bidding Announcement | Operation and Maintenance Project of Haina Baichuang Official Account
再肝3天,整理了90个 NumPy 例子,不能不收藏!
Day118. Shangyitong: order list, details, payment