如何选择数据库中类型为十进制(10,0)的每个表的所有列,因此我需要更改为十进制(10,2)在MySQL中?
答案 0 :(得分:0)
尝试一下
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;