小编Zen*_*ata的帖子

Excel 2010,VBA和ListObjects小计不更新表更改

所以,有这个结构(从A1开始 - 显示片段>运行):

table {
  border-color: #BBB;
  border-width: 0px 0px 1px 1px;
  border-style: dotted;
}
body {
  font: 12px Arial, Tahoma, Helvetica, FreeSans, sans-serif;
  color: #333;
}
td {
  border-color: #BBB;
  border-width: 1px 1px 0px 0px;
  border-style: dotted;
  padding: 3px;
}
Run Code Online (Sandbox Code Playgroud)
<table>
  <tbody>
    <tr>
      <th></th>
      <th>A</th>
      <th>B</th>
      <th>C</th>
      <th>D</th>
    </tr>
    <tr>
      <td>1</td>
      <td>Title 1</td>
      <td>Title 2</td>
      <td>Title 3</td>
      <td>Title 4</td>
    </tr>
    <tr>
      <td>2</td>
      <td>GH</td>
      <td>1</td>
      <td>434</td>
      <td>4</td>
    </tr>
    <tr>
      <td>3</td>
      <td>TH</td>
      <td>3</td>
      <td>435</td>
      <td>5</td>
    </tr>
    <tr>
      <td>4</td>
      <td>TH</td>
      <td>4</td>
      <td>4</td> …
Run Code Online (Sandbox Code Playgroud)

vba subtotal excel-2010 listobject

7
推荐指数
1
解决办法
1131
查看次数

MongoDB在嵌套对象KEY(JSON)上查找键

非常新,并且在MongoDB上绝对没有受过教育.

拥有这个JSON结构:

{
"id": "123456",
"makes": {
    "abc": {
        "att1": 4,
        "att2": "fffff",
        "att3": 46
        },
    "fgh": {
        "att1": 8,
        "att2": "ggggg",
        "att3": 6
    },
    "rty": {
        "att1": 3,
        "att2": "hhhh",
        "att3": 4
        },
    "iop": {
        "att1": 4,
        "att2": "llll",
        "att3": 3
        }
}
Run Code Online (Sandbox Code Playgroud)

}

如何查询数据库中的"fgh"make?我试过了:

db.<myCollection>.find({"makes":"fgh"})
Run Code Online (Sandbox Code Playgroud)

但这不起作用.如果我写,它工作正常:

db.<myCollection>.find({"makes.fgh.att1":8})
Run Code Online (Sandbox Code Playgroud)

先感谢您!

json nested mongodb

4
推荐指数
1
解决办法
3549
查看次数

标签 统计

excel-2010 ×1

json ×1

listobject ×1

mongodb ×1

nested ×1

subtotal ×1

vba ×1