如何选择数据库中所有类型为Decimal(10,0)的表的列,以便在MySQL中更改为Decimal(10,2)?
发布于 2019-01-29 07:35:38
尝尝这个
select table_schema,table_name,column_name,data_type,numeric_precision,numeric_scale
from information_schema.columns
where table_schema='<databasename>' and data_type='decimal' and numeric_precision=10 and numeric_scale=0;https://stackoverflow.com/questions/54415005
复制相似问题