当前位置:网站首页>mysql 查询当前数据库下的表名
mysql 查询当前数据库下的表名
2022-07-25 06:08:00 【sayyy】
生成 truncate table
select concat('truncate table `', `table_name`, '`;')
from `information_schema`.`tables` where `table_schema`=DATABASE() and `table_type`='BASE TABLE';
生成 delete from
select concat('delete from `', `table_name`, '`;')
from `information_schema`.`tables` where `table_schema`=DATABASE() and `table_type`='BASE TABLE';
边栏推荐
- "Everyday Mathematics" serial 61: March 1
- 剑指 Offer 32 - I. 从上到下打印二叉树
- SAP FICO section III BDC and ltmc import S4 financial account
- NFT: how to improve rentable NFT (erc-4907)
- 出于数据安全考虑,荷兰教育部要求学校暂停使用 Chrome 浏览器
- R language data The table package performs aggregation transforms of data packets and calculates the grouping interquartile range (IQR) of dataframe data
- New discovery of ROS callback function
- (牛客多校二)G-Link with Monotonic Subsequence(构造题)
- Why is it that all the games are pseudorandom and can't make true random?
- UML modeling tools Visio, rational rose, powerdesign
猜你喜欢

Xiaomi 12s UTRA Leica watermark generation online tool

Data too long for column ‘data‘ at row 1以及设置成longblob造成的乱码解决。node-mysql

【Node】服务端口被占用Error: listen EADDRINUSE: address already in use :::9000-如何关闭node启动的端口

New discovery of ROS callback function

Promise implementation

Prometheus operator configures promethesrule alarm rules

Amazoncaptcha bypasses Amazon IP verification code with 95% success rate

HTB-Arctic

剑指 Offer 54. 二叉搜索树的第k大节点

HTB-Optimum
随机推荐
嵌入式c语言开发之宏定义求两个数的最大值的使用技巧
HTB-Devel
剑指 Offer 36. 二叉搜索树与双向链表
Why is it that all the games are pseudorandom and can't make true random?
Sword finger offer 36. binary search tree and bidirectional linked list
计算BDP值和wnd值
In depth analysis: is the hottest business model in 2022 linked by 2+1 a legal model?
"Everyday Mathematics" serial 61: March 1
This is how the permission system is designed, yyds
Matlab drawing example: 5: Biaxial graph
Sword finger offer 45. arrange the array into the smallest number
New discovery of ROS callback function
(牛客多校二)J-Link with Arithmetic Progression(最小二乘法/三分)
VO, dto, do, Po distinction and use
What does PK, NN, Qu, B, UN, ZF, AI, G mean when creating tables in MySQL
What projects can make money online? Is it reliable to be we media?
剑指 Offer 54. 二叉搜索树的第k大节点
HTB-Granpa
The computer accesses the Internet normally with the same network cable, and the mobile phone connects to WiFi successfully, but it cannot access the Internet
10. Rendering Basics