我有一个问题:
insert into xx_tab_abc
(wr_flag,actual_term_date,person_num)
SELECT BOL_FLAG, ACTUAL_TERM_DATE, PERSON_NUMBER FROM WR_TAB
我可以修改此选择查询,如果actual_term_date in wr_tab
不为空,那么' Y'插入wr_flag
否则没有传递值?
答案 0 :(得分:2)
SELECT case when ACTUAL_TERM_DATE is not null
then 'y'
else BOL_FLAG
end,
ACTUAL_TERM_DATE, PERSON_NUMBER
FROM WR_TAB
答案 1 :(得分:0)
如果library(translateR)
res <- translate(content.vec = c("Hello world.", "This is a test."),
microsoft.client.id = "foo_id",
microsoft.client.secret = "fdsg54345_bar_secret_560985lkfdasd",
source.lang = "en",
target.lang = "de")
res
# [1] "Hallo Welt." "Dies ist ein Test."
为空,您是否说不想插入任何内容?如果是这样,你可以这样做
ACTUAL_TERM_DATE
答案 2 :(得分:0)
@if(isset($row))
<form action="{{action('ProductController@edit')}}" method="post">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<div class="col-sm-12">
<h1 style="text-align:center;">Edit Items</h1>
<table class="table">
<thead>
<tr>
<th>ID</th>
<th>Category</th>
<th>Item</th>
<th>Price</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<input type="hidden" name="item_id" value="{{ $row->item_id}}">
<td><input class="form-control" name="item_name" value="{{$row->item_name}}" /></td>
<td><input class="form-control" name="item_price" value="{{$row->item_price}}" /></td>
<td><input class="btn btn-primary btn-block btn-flat" type="submit" value="Edit"></td>
</tr>
</tbody>
</table>
</div>
</form>
@endif