易截截图软件、单文件、免安装、纯绿色、仅160KB

国庆节一问: 如何批量更新Access中字段部分内容?

我现在access表中某一字段A 有下面的内容(只是后面的部分不相同)

1.http://www.google.cn/search?client=pub-475201884&forid=1&prog=aff&ie=GB2312&oe=GB2312&hl=zh-CN&q=他和她的男人
2.http://www.google.cn/search?client=pub-475201884&forid=1&prog=aff&ie=GB2312&oe=GB2312&hl=zh-CN&q=加勒比海盗3
3.http://www.google.cn/search?client=pub-475201884&forid=1&prog=aff&ie=GB2312&oe=GB2312&hl=zh-CN&q=台剧-18禁不禁

我只想修改其中的pub-475201884为其他的内容

请问用一条sql语句是否能完成!!

不知道ACCESS有没有这个函数呢
UPDATE TB SET COL=REPLACE(COL,'pub-475201884','FDSFD')

使用REPLACE函数

update tb from a = replace(a,'pub-475201884','xxx')

access中没有这个函数

建议在前台处理
asp,asp.net中都有函数处理


网上有很多Access字符替换工具


试了一下 access 2003 支持 replace 函数


相关问答:

Access 2003 c#? 看看有没有语法错误啊

string strAdd = "update tb_Note set Note='" + richTextBox1.Text + "' where NoteCode='"+strflag +"'"
都是文本类型的
完全正确。

你不试一下就提高 ......

access 导入 access 转换无效!在线等!

从类型"DBNULL" 到类型“Double”的转换无效(数据库中对应的 a3 或a5 没有数据是为空)
,请问我怎么处理!

VB.NET code:

Dim a1 As String = Nothing
Dim a2 As S ......

ACCESS建表问题

m_pConnect->BeginTrans();
strSql.Format("CREATE TABLE SysUser(lsh AUTOINCREMENT NOT NULL UNIQUE,PRIMARY KEY(lsh),userType BYTE)");
m_pConnect->Execute((_bstr_t)strSql,NULL, adExe ......

access过滤问题,有请大侠们

sql语句:
SELECT  top 12  Forum.ID,Forum.topic,Reforum.id,Reforum.username,Reforum.posttime,Reforum.postip,Forum.username from Forum INNER JOIN Reforum ON Forum.ID = Reforum.topicid wher ......

vs2005c#连接access数据库提示数据库找不到

代码如下:
OleDbConnection conn = new OleDbConnection();
        conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("~/Ap ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号