Загрузка данных


select
    column_name,
    data_type
from information_schema.columns
where table_schema = 'prod_line'
  and table_name = 'table_param_pl_invest_profile'
order by ordinal_position;




select
    t.*
from prod_line.table_param_pl_invest_profile t
join prod_line.pens_product_param_pl pppp
    on pppp.id = t.pens_product_param_pl_id
where pppp.pens_product_id = 8977
order by t.id;