我正在使用 <div class="col-md-3 col-xs-12 donate_search">
<span class="col-xs-12 donate_span">
<a href="#" target="_blank" >
<img class="donate" src="<?php echo get_template_directory_uri(); ?>/images/donate.png"> Donate Now
</a>
</span>
<span class="col-xs-12">
<form role="search" method="get" class="search-form input-group " action="<?php echo home_url( '/' ); ?>">
<label><span class="screen-reader-text"><?php echo _x( 'Search for:', 'label' ) ?></span>
<input type="search" class="search-field form-control" placeholder="<?php echo esc_attr_x( 'Search', 'placeholder' ) ?>" value="<?php echo get_search_query() ?>" name="s" title="<?php echo esc_attr_x( 'Search for:', 'label' ) ?>" />
</label>
<span class="input-group-btn">
<button class="btn btn-white search-submit" type="submit" value="<?php echo esc_attr_x( 'Search', 'submit button' ) ?>"><span class="glyphicon glyphicon-search" aria-hidden="true"></span></button>
</span>
</form>
</span>
</div>
,并希望将我的一个列(Unicode字符串(DT_WSTR-50))上的空字符串更改为SQL Server 2008 Integration Services (SSIS)
。我找到了一些相关的帖子,但这似乎没有用。
我试过了:
NULLs
答案 0 :(得分:1)
这个怎么样:
LEN(LTRIM(RTRIM([ColumnName])))==0 ? NULL(DT_WSTR, 10) : LTRIM(RTRIM([ColumnName]))