我varchar在SQL Server数据库中有一个字段,它以多种不同的方式存储电话号码,但它们本质上都是电话号码.
例子:
8181234564
(818) 123 4564
818 - 123 - 4567
Run Code Online (Sandbox Code Playgroud)
我希望我可以使用正则表达式删除所有非数字字符,然后执行类似或"="...我可以这样做吗?
忘了提一下:我只有读取权限.
insert into
keyword_history (
keyword_id,
searchengine,
location,
"4",
curdate()
)
select
keyword_id,
searchengine,
location
from
keyword_history
where
history_id = 21
Run Code Online (Sandbox Code Playgroud)
基本上,我要做的是:
<div class="btn-toolbar search-dropdown" style="float:left;margin-right:10px;">
<div class="btn-group">
<button class="btn btn-small">All Types</button>
<button data-toggle="dropdown" class="btn btn-small dropdown-toggle"><span class="caret"></span>
</button>
<ul class="dropdown-menu" id="search-type">
<li>
<label class="checkbox">
<input type="checkbox" name="tv" value="TV">TV</input></label>
</li>
<li>
<label class="checkbox">
<input type="checkbox" name="movies" value="Movies">Movies</input></label>
</li>
</ul>
</div>
</div>
Run Code Online (Sandbox Code Playgroud) admin@apollo:~/clojure$ clojure
Clojure 1.0.0-
user=> (require 'clojure.contrib.str-utils)
java.io.FileNotFoundException: Could not locate clojure/contrib/str_utils__init.class or clojure/contrib/str_utils.clj on classpath: (NO_SOURCE_FILE:0)
user=>
Run Code Online (Sandbox Code Playgroud)
安装clojure时我做错了什么?为什么cant clojure找不到我的java类?我安装了java.
admin@apollo:~/clojure$ sudo apt-get install sun-java6-jre sun-java6-jdk
sudo: unable to resolve host apollo
Reading package lists... Done
Building dependency tree
Reading state information... Done
sun-java6-jre is already the newest version.
sun-java6-jdk is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.
admin@apollo:~/clojure$ java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java …Run Code Online (Sandbox Code Playgroud)