QQ网名大全

oracle如何根据一张表的某一列创建另一张表?

没有这种动态创建表的语句。
只能是通过sql语句获取建表语句。或者使用存储过程创建这个表。
sql语句获取create table的语句:

select 'create table new_tab ('||wm_concat(distinct (kcm)||' number')||' );'
from score
佚名
2024-06-01 18:32:25
最佳回答
类似问题(10)