mysql 的连接函数concat()可以多个字符串连接,而在oracle里面只能两个字符串连接
select concat('drop table ',t.table_name,' ;') col from information_schema.tables t where t.table_schema='account_check';
本文探讨了MySQL中concat()函数用于多个字符串连接的特点,并对比了Oracle中仅能连接两个字符串的情况。通过一个具体示例展示了如何在MySQL中生成一系列drop table语句。
mysql 的连接函数concat()可以多个字符串连接,而在oracle里面只能两个字符串连接
select concat('drop table ',t.table_name,' ;') col from information_schema.tables t where t.table_schema='account_check';
1839