Вы используете загрузчик. Используйте класс начальной загрузки justify-content-between
. Это гарантирует, что элементы в этом блоке имеют эквивалентное пространство между ними.
Теперь, когда есть только два элемента, вы получаете полное пространство в центре.
Вы также можете использовать justify-content-around
.
.bootstrap-table .table:not(.table-condensed),
.bootstrap-table .table:not(.table-condensed)>tbody>tr>th,
.bootstrap-table .table:not(.table-condensed)>tfoot>tr>th,
.bootstrap-table .table:not(.table-condensed)>thead>tr>td,
.bootstrap-table .table:not(.table-condensed)>tbody>tr>td,
.bootstrap-table .table:not(.table-condensed)>tfoot>tr>td {
padding: 2px 3px 2px 3px;
}
.header-size-section {
display: flex;
font-weight: 600;
margin-bottom: 2px;
}
.size-list {
padding-bottom: 1px;
padding-top: 1px;
}
.table-search-list {
margin: 0px;
display: table-cell;
vertical-align: middle;
padding: 6px;
}
.search-table {
padding: 0.375rem 0.75rem;
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #495057;
background-color: #fff;
background-clip: padding-box;
border: 1px solid #ced4da;
border-radius: 0.25rem;
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.header-search-section,
.lable-size-section {
display: inline-table;
}
header-size-section>header-search-section {
float: right;
}
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<div class="header-size-section justify-content-between">
<div class="lable-size-section">
<select class="form-control size-list" id="table-size-list" name="table-size-list" onchange="tableSizeChanged(this)">
<option>25</option>
<option>50</option>
<option>100</option>
<option>all</option>
</select>
</div>
<div class="header-search-section">
<span class="table-search-list">Search: </span>
<input type="text" class="search-table" />
</div>
</div>
Это пример с justify-content-around
.
.bootstrap-table .table:not(.table-condensed),
.bootstrap-table .table:not(.table-condensed)>tbody>tr>th,
.bootstrap-table .table:not(.table-condensed)>tfoot>tr>th,
.bootstrap-table .table:not(.table-condensed)>thead>tr>td,
.bootstrap-table .table:not(.table-condensed)>tbody>tr>td,
.bootstrap-table .table:not(.table-condensed)>tfoot>tr>td {
padding: 2px 3px 2px 3px;
}
.header-size-section {
display: flex;
font-weight: 600;
margin-bottom: 2px;
}
.size-list {
padding-bottom: 1px;
padding-top: 1px;
}
.table-search-list {
margin: 0px;
display: table-cell;
vertical-align: middle;
padding: 6px;
}
.search-table {
padding: 0.375rem 0.75rem;
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #495057;
background-color: #fff;
background-clip: padding-box;
border: 1px solid #ced4da;
border-radius: 0.25rem;
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.header-search-section,
.lable-size-section {
display: inline-table;
}
header-size-section>header-search-section {
float: right;
}
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<div class="header-size-section justify-content-around">
<div class="lable-size-section">
<select class="form-control size-list" id="table-size-list" name="table-size-list" onchange="tableSizeChanged(this)">
<option>25</option>
<option>50</option>
<option>100</option>
<option>all</option>
</select>
</div>
<div class="header-search-section">
<span class="table-search-list">Search: </span>
<input type="text" class="search-table" />
</div>
</div>
Будет эта работа для Вас:
update duptest
set nonid = 'c'
WHERE ROWID IN (SELECT MIN (ROWID)
FROM duptest
GROUP BY id, nonid)
Это работало на меня, даже на повторные выполнения.
--third, update the one row
UPDATE DUPTEST DT
SET DT.NONID = 'c'
WHERE (DT.ID,DT.ROWID) IN(
--second, find the row id of the first dup
SELECT
DT.ID
,MIN(DT.ROWID) AS FIRST_ROW_ID
FROM DUPTEST DT
WHERE ID IN(
--first, find the dups
SELECT ID
FROM DUPTEST
GROUP BY ID
HAVING COUNT(*) > 1
)
GROUP BY
DT.ID
)
UPDATE duptest
SET nonid = 'c'
WHERE nonid = 'b'
AND rowid = (SELECT min(rowid)
FROM duptest
WHERE nonid = 'b');
Я думаю, что это должно работать.
UPDATE DUPTEST SET NONID = 'C'
WHERE ROWID in (
Select ROWID from (
SELECT ROWID, Row_Number() over (Partition By ID, NONID order by ID) rn
) WHERE rn = 1
)
Я знаю, что это не отвечает на Ваш начальный вопрос, но существует, не включают Вашу таблицу и проблему, у Вас есть адресация, определенная строка следует из этого.
Таким образом, мое предложение - если бы определенное приложение допускает его - состояло бы в том, чтобы добавить столбец ключа к Вашей таблице (например, REAL_ID как ЦЕЛОЕ ЧИСЛО).
Затем Вы могли узнать самый низкий идентификатор для дубликатов
select min (real_id)
from duptest
group by (id, nonid)
и обновление просто эти строки:
update duptest
set nonid = 'C'
where real_id in (<select from above>)
Я уверен, что оператор обновления может быть настроен несколько, но я надеюсь, что он иллюстрирует идею.
Преимуществом является "более чистый" дизайн (Ваш идентификационный столбец не является действительно идентификатором), и более портативное решение, чем доверие определенным для DB версиям rowid.