当前位置: 首页 > news >正文

如何批量从sql语句中提取表名

简介

使用的卢易表 的提取表名功能,可以从sql语句中批量提取表名。采用纯文本sql语法分析,无需连接数据库,支持从含非sql语句的文件文件中提取,支持各类数据库sql语法。

特点

快:从成百个文件中提取上千个表名只需1s

准:迄今为止从纯sql文件中提取表名的准确率为100%,从包含非sql语句的文件中提取的表名完整度为100%

狠:采用纯文本sql语法分析,无需连接数据库,支持从含非sql语句的文件文件中提取,支持各类数据库sql语法

使用方法

1.点击【提取表名】

2.选择需要提取表名的文本文件,可多选

3.点击开始

示例

支持错误语法
支持包含非sql文本
支持各种文本文件格式
with tmp_table1 as( 
select 
a.id as id, 
b.name as name, -- from 
c.city,
' from 
aa',
--select * from comment_table1 a join comment_table2 b on a.id = b.id where 1=1
66/*select * from comment_table3 a join comment_table4 b on a.id = b.id
where 1=1
--test
*/
,
(select a.name from country a where a.id = c.countryid) as country,
'---',
(select nvl(c.country,' ') from dual as a) as country1,
a.amount,
decode(d.email,'xxx',' select ',nvl(e.name,' from ')),
'a
aa' name1,
' where ' as  test
from order as a 
left join user1. customer b on (a.custid = b.id)  and b.sex in ('0','1','2')
join address c on c.id = b.addressid
left join (select custid, max(email) email from contact a where email is not null group by custid) d on d.custid =b.id,
company e
where e.id = b.companyid
union all
select 
*
from (select * from order as b) as a ,(select * from customer as b) b --,comment_table3
, address c 
,(select custid, max(email) email from contact a where email is not null group by custid) d 
where a.id = (select 1 from dual)
and b.custid = subsrr(b.id,1,8)
and b.addressid = c.id
and d.custid = b.id
),
tmp_table2 AS
(
select * from (select * from user1 . order a join user2.customer b on a.custid = b.id)
)
select a.custid, sum(amount) from tmp_table1 a, tmp_table2 b 
where a.id = b.id
and a.id exists(select * from order c where c.amout >= 10000 )
and b.date >= add_months((select sysdate from dual),-12)
group by a.custid

提取结果:

附软件官方网站及下载地址:

的卢易表官方网站icon-default.png?t=O83Ahttp://​www.diluauto.com/products/dilu-easyexcel.html

http://www.lryc.cn/news/459667.html

相关文章:

  • 怎么把音频的速度调慢?6个方法调节音频速度
  • K8s-services+pod详解1
  • 从RNN讲起(RNN、LSTM、GRU、BiGRU)——序列数据处理网络
  • python:假的身份信息生成模块faker
  • spring task的使用场景
  • 美畅物联丨剖析 GB/T 28181 与 GB 35114:视频汇聚领域的关键协议
  • uni-app 开发的应用快速构建成鸿蒙原生应用
  • 代码随想录算法训练营| 669. 修剪二叉搜索树 、 108.将有序数组转换为二叉搜索树 、 538.把二叉搜索树转换为累加树
  • Django模型实现外键自关联
  • Android ViewModel
  • 优先算法1--双指针
  • 利用弹性盒子完成移动端布局(第二次实验作业)
  • C# 字符串(string)三个不同的处理方法:IsNullOrEmpty、IsInterned 、IsNullOrWhiteSpace
  • 读书笔记 - 虚拟化技术 - 0 QEMU/KVM概述与历史
  • 常见的负载均衡
  • 利用sessionStorage收集用户访问信息,然后传递给后端
  • 什么是Qseven?模块电脑(核心板)规范标准简介二
  • leetcode数组(三)-有序数组的平方
  • HCIP-HarmonyOS Application Developer 习题(五)
  • 【详细教程】如何使用YOLOv11进行图像与视频的目标检测
  • H7-TOOL的LUA小程序教程第14期:任意波形信号发生器,0-20mA输出和微型数控电源(2024-10-11,已更新)
  • Redis面试篇3
  • 集成方案 | 借助 Microsoft Copilot for Sales 与 Docusign,加速销售流程!
  • k8s 1.28.2 集群部署 MinIO 分布式集群
  • HAL库常用的函数:
  • 如何捕捉行情爆发的前兆
  • 【万字长文】Word2Vec计算详解(一)CBOW模型
  • React Native源码学习
  • 【计网】从零开始认识https协议 --- 保证安全的网络通信
  • Ubuntu安装 MySQL【亲测有效】