在一个存储过程,参数传入表名,然后把表的每一行数据,各字段拼成一个字符串,再计算它的md5值;
不想在存储过程中把各字段写死,有没有办法根据表名,得到各字段名;这样可以传入任意表
SELECT
column_name
,data_type
,character_maximum_length
,numeric_precision
,numeric_scale
FROM information_schema.columns
WHERE table_schema = 'public' and table_name='USERS'
GROUP BY
column_name
,data_type
,character_maximum_length
,numeric_precision
,numeric_scale
column_name