table_name -> company_contents
column_name -> content
column_type -> jsonb
data -> {
"企业类型": '有限公司',
"经营范围": 'IT',
"企业资质": {
"主板上市": true
}
}
# 查询 ( 企业类型 = '有限公司' ) 的所有企业
select * from company_contens where ( content ->> '企业类型' = '有限公司' );
# 查询 ( 主板上市 = true ) 的所有企业
select * from company_contents where ( content -> '企业资质' ->> '主板上市' = ture )