国家统计局年度分省工业企业主要经济指标,企业类型含规模以上、国有控股、私营、外商及港澳台商投资、大中型,31 个省级行政区,含企业单位数、资产、负债、收入、利润等指标,1990 年起,保留历史修订版本
SELECT date, report_date, enterprise_type, region_name, region_code, indicator_code, indicator_nameFROM cn_macro_industrial_enterprise_regional_yearlyWHERE date >= '2026-11-03'ORDER BY dateLIMIT 10010 个字段
本表记录国家统计局发布的年度分省工业企业主要经济指标,一年的一种企业类型的一个省的一个指标一行,是长表。企业类型有规模以上、国有控股、私营、外商及港澳台商投资、大中型 5 种,
覆盖 31 个省级行政区(不含港澳台);指标有企业单位数、资产、负债、所有者权益、收入、成本、费用、利润、用工等 42 个。
保留历史修订版本:同一年的数据被修订后新增一行,旧行保留,可以按 date 取任意时点当时已知的值。
全国的年度指标见 cn_macro_industrial_enterprise_yearly(含按企业规模、登记注册类型分)和 cn_macro_industrial_enterprise_industry_yearly(按行业分),分省的月度指标见 cn_macro_industrial_enterprise_regional_monthly。
{{data_start_date}};数据最新年份:{{data_end_date}}。各企业类型和各省的起始年份不同(以北京为例,规模以上从 1990 年起,国有控股从 1998 年起,外商及港澳台商投资和大中型从 1999 年起,私营从 2000 年起),各指标的起止年份也不同,最新一年只有部分指标| 关键字 | 释意 |
|---|---|
| date | 公布日期,本表首次抓到该版本数据的日期,不是统计局公告日期 |
| report_date | 报告期,取当年 12 月 31 日,如 2025-12-31 表示 2025 年 |
| enterprise_type | 企业类型 |
| region_code | 省级行政区代码,6 位行政区划代码 |
| indicator_code | 指标代码,整张表唯一 |
| 字段 | 释意 |
|---|---|
| date | 公布日期;上线前的历史年份按报告期末日后 365 天估算,年份被修订后新增一行,date 为抓到修订数据的日期 |
| report_date | 报告期,取当年 12 月 31 日 |
| enterprise_type | 企业类型:above_scale 规模以上,state_holding 国有控股,private 私营,foreign_hmt 外商及港澳台商投资,large_medium 大中型 |
| region_name | 省级行政区名称,国家统计局口径,如广东省 |
| region_code | 省级行政区代码,6 位行政区划代码,如广东省为 440000,查询请用代码 |
| indicator_code | 指标代码,查询请用代码 |
| indicator_name | 指标名称,如"利润总额""资产总计" |
| unit | value 的计量单位,每个指标固定一个:亿元、个、万人 |
| basis | value 的口径:year_end 为年末存量,如企业单位数、资产总计;full_year 为全年累计的流量,如利润总额、营业收入 |
| value | 全年或年末的值,口径见 basis,单位见 unit |
| enterprise_type | 名称 |
|---|---|
| above_scale | 规模以上工业企业 |
| state_holding | 国有控股工业企业 |
| private | 私营工业企业 |
| foreign_hmt | 外商及港澳台商投资工业企业 |
| large_medium | 大中型工业企业 |
31 个省级行政区,代码与 cn_macro_gdp_regional_quarterly 的 region_code 一致:北京 110000、天津 120000、河北 130000、山西 140000、内蒙古 150000、辽宁 210000、吉林 220000、黑龙江 230000、上海 310000、江苏 320000、浙江 330000、安徽 340000、福建 350000、江西 360000、山东 370000、河南 410000、湖北 420000、湖南 430000、广东 440000、广西 450000、海南 460000、重庆 500000、四川 510000、贵州 520000、云南 530000、西藏 540000、陕西 610000、甘肃 620000、青海 630000、宁夏 640000、新疆 650000。
| indicator_code | 名称 | unit | 口径 |
|---|---|---|---|
| enterprise_count | 企业单位数 | 个 | 年末存量 |
| loss_enterprise_count | 亏损企业单位数 | 个 | 年末存量 |
| paid_in_capital | 实收资本 | 亿元 | 年末存量 |
| state_capital | 国家资本金(国家资本) | 亿元 | 年末存量 |
| collective_capital | 集体资本金(集体资本) | 亿元 | 年末存量 |
| legal_person_capital | 法人资本金(法人资本) | 亿元 | 年末存量 |
| individual_capital | 个人资本金(个人资本) | 亿元 | 年末存量 |
| hmt_capital | 港澳台资本金(港澳台资本) | 亿元 | 年末存量 |
| foreign_capital | 外商资本金(外商资本) | 亿元 | 年末存量 |
| current_assets | 流动资产合计 | 亿元 | 年末存量 |
| accounts_receivable_net | 应收账款净额 | 亿元 | 年末存量 |
| accounts_receivable | 应收账款 | 亿元 | 年末存量 |
| inventory | 存货 | 亿元 | 年末存量 |
| finished_goods_inventory | 产成品 | 亿元 | 年末存量 |
| fixed_assets_total | 固定资产合计 | 亿元 | 年末存量 |
| fixed_assets_net | 固定资产净额 | 亿元 | 年末存量 |
| fixed_assets_original_value | 固定资产原价合计(固定资产原价) | 亿元 | 年末存量 |
| accumulated_depreciation | 累计折旧 | 亿元 | 年末存量 |
| total_assets | 资产总计 | 亿元 | 年末存量 |
| current_liabilities | 流动负债合计 | 亿元 | 年末存量 |
| accounts_payable | 应付账款 | 亿元 | 年末存量 |
| total_liabilities | 负债合计 | 亿元 | 年末存量 |
| owners_equity | 所有者权益合计 | 亿元 | 年末存量 |
| main_business_revenue | 主营业务收入 | 亿元 | 全年累计 |
| main_business_cost | 主营业务成本 | 亿元 | 全年累计 |
| operating_revenue | 营业收入 | 亿元 | 全年累计 |
| operating_cost | 营业成本 | 亿元 | 全年累计 |
| selling_expense | 销售费用 | 亿元 | 全年累计 |
| main_business_tax_surcharge | 主营业务税金及附加 | 亿元 | 全年累计 |
| administrative_expense | 管理费用 | 亿元 | 全年累计 |
| financial_expense | 财务费用 | 亿元 | 全年累计 |
| interest_expense | 利息支出 | 亿元 | 全年累计 |
| interest_charge | 利息费用 | 亿元 | 全年累计 |
| investment_income | 投资收益 | 亿元 | 全年累计 |
| operating_profit | 营业利润 | 亿元 | 全年累计 |
| total_profit | 利润总额 | 亿元 | 全年累计 |
| loss_enterprise_loss | 亏损企业亏损总额(亏损企业亏损额、亏损总额) | 亿元 | 全年累计 |
| income_tax_payable | 应交所得税 | 亿元 | 全年累计 |
| vat_payable | 本年应交增值税 | 亿元 | 全年累计 |
| industrial_sales_output_value | 工业销售产值(现价) | 亿元 | 全年累计 |
| export_delivery_value | 出口交货值 | 亿元 | 全年累计 |
| average_employees | 平均用工人数 | 万人 | 全年累计 |
2022 年前的类目有 35 个指标,2023 年起的类目有 31 个。会计科目范围可能不同的(如"应收账款净额"和"应收账款"、"主营业务收入"和"营业收入")分开记,
名称只差个别字的(如"国家资本金"和"国家资本")共用一个代码。指标的名称和代码与 cn_macro_industrial_enterprise_yearly 一致,口径是否与全国的同名指标完全相同没有核对。
enterprise_type、region_code、indicator_code 过滤,再按需要透视。basis 为 year_end 的是年末存量,full_year 的是全年累计,两者不能直接相除;比率要自己按口径计算。date 过滤可以只取回测当天已经公布的数据,见下面的示例。from bigquant import dai
# 各省规模以上企业的利润总额, 取各年份的最新版本sql = """SELECT report_date, region_code, region_name, valueFROM cn_macro_industrial_enterprise_regional_yearlyWHERE enterprise_type = 'above_scale' AND indicator_code = 'total_profit'QUALIFY row_number() OVER (PARTITION BY report_date, enterprise_type, region_code, indicator_code ORDER BY date DESC) = 1ORDER BY report_date, region_code"""国家统计局的数据接口不提供公布时间,公告表 cn_macro_announcement 里也没有年度分省企业经济指标的公告,所以 date 是本表自己记的版本日期。
统计局发布各省各指标年度数据的实际时间没有逐个核实,date 取偏晚的估算值,不会引入未来信息:
date 取抓取当天与"报告期末日后 365 天"中较早的一个,所以刚发布的数据 date 就是抓到的当天;已入库年份的数值发生变化即视为修订,新增一行,date 记抓取当天,更早年份的修订通过不定期的全量历史构建补入。上线前的历史只保留一个版本,取值是上线时的最新值。
数据源页面的更新记录里,增量和历史写入的说明是一句话:[增量] 或 [历史] 开头,写明本次写入的报告期范围和行数。
修复用于改正已入库的数据:只处理指定日期所在的年份,被改正的行沿用原来的公布日期 date,按主键覆盖旧值,不新增版本;更新记录里的说明是调用方传入的 update_note 原文。
仓库里没有旧的年度分省企业经济指标表,本表是新增数据。
SELECT date, report_date, enterprise_type, region_name, region_code, indicator_code, indicator_nameFROM cn_macro_industrial_enterprise_regional_yearlyWHERE date >= '2026-11-03'ORDER BY dateLIMIT 100