SELECT COLUMN_NAME, NUMERIC_PRECISION, NUMERIC_SCALE
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = 'financeproject' AND TABLE_NAME = 'finance_balance' AND DATA_TYPE = 'decimal';

查出的字段   excel 拼接 修改语句

ALTER TABLE finance_income  MODIFY COLUMN 	yyzsrbqje	DECIMAL(28, 10) DEFAULT 0;

sql 批量修改字段 的默认值_数据库