求access数据库批量删除软件或方法

作者&投稿:丙使 (若有异议请与网页底部的电邮联系)
access 数据库中,如何批量删除记录中指定的内容?~

1.点击菜单栏上面的创建——查询设计。

2.然后再弹出的显示表的对话框中,我们选择订单表,然后点击添加按钮。

3.接着点击菜单栏上面的“删除”,打开删除设计。

4.将员工ID拖拽到下面的设计表格中。

5.同样的方法将星号也拖拽到下面的表格中。

6.在条件一栏写上 =3。

7.点击菜单栏上面的视图就可以查看要删除的记录。

8.点击运行按钮就可以直接将这些记录删除了。

读取后用正则表达式全部替换
例如:
HTML相关的正则表达式2007-07-15 00:04#region 相关正则表达式

///
/// 去掉所有html标签
///
private static readonly Regex FilterAll = new Regex(
@"(\[([^=]*)(=[^\]]*)?\][\s\S]*?\[/\1\])|(?(?=[^一-\u9FA5\uFE30-\uFFA0,."");])]*>[^(?=[^一-\u9FA5\uFE30-\uFFA0,."");]))|(?)|(?)|(?)|(?)|(?]+)?>[\s\S]*?/li>)|(? ]+(\s*[^=>]+?=['""]?[^""']+?['""]?)*?[^\[)|(?&[a-zA-Z]+;)|(?\#[a-z0-9]{6})|(?\s+)|(\&\#\d+\;)",
RegexOptions.ExplicitCapture
| RegexOptions.Multiline
| RegexOptions.IgnoreCase); //(?)|
//(?)|(?)|(?)|(?)|(?]+)?>[\s\S]*?/li>)|(? ]+(\s*[^=>]+?=['""]?[^""']+?['""]?)*?[^\[)|(?&[a-zA-Z]+;)|(?\#[a-z0-9]{6})|(?\s+)

///
/// 找出title标签
///
private static readonly Regex FindTitle = new Regex(
@"",
RegexOptions.ExplicitCapture
| RegexOptions.Multiline
| RegexOptions.IgnoreCase);

///
/// 找出title标签内容
///
private static readonly Regex FindTitleContent = new Regex(
@"(?[\s\S]*?)",
RegexOptions.ExplicitCapture
| RegexOptions.Multiline
| RegexOptions.IgnoreCase);

///
/// 找出h 和Strong标签
///
private static readonly Regex FindHStrong = new Regex(
@"|",
RegexOptions.ExplicitCapture
| RegexOptions.Multiline
| RegexOptions.IgnoreCase);

///
/// 找出p 和br标签
///
private static readonly Regex FindPB = new Regex(
@"||",
RegexOptions.ExplicitCapture
| RegexOptions.Multiline
| RegexOptions.IgnoreCase);

///
/// 找出nbsp标签
///
private static readonly Regex FindNbsp = new Regex(
@" ",
RegexOptions.ExplicitCapture
| RegexOptions.Multiline
| RegexOptions.IgnoreCase);

///
/// 找出结尾标签
///
private static readonly Regex FindS = new Regex(
@"(?[\s\S]*?)\$",
RegexOptions.ExplicitCapture
| RegexOptions.Multiline
| RegexOptions.IgnoreCase);

///
/// 找出是否为标准句
///
private static readonly Regex IsSen = new Regex(
@"[,.,。!!;;::……??《》“”""]",
RegexOptions.ExplicitCapture
| RegexOptions.Multiline
| RegexOptions.IgnoreCase);

///
/// 找出是否为垃圾句[strong][h]标签过多的
///
private static readonly Regex IsWs = new Regex(
@"\[\(h\)\]",
RegexOptions.ExplicitCapture
| RegexOptions.Multiline
| RegexOptions.IgnoreCase);

///
/// 找出是否为垃圾句冒号和·-过多的
///
private static readonly Regex IsWsM = new Regex(
@"\[·]|[-]|[::]",
RegexOptions.ExplicitCapture
| RegexOptions.Multiline
| RegexOptions.IgnoreCase);

///
/// 找出是否为BBS特征
///
private static readonly Regex IsBbsInfo = new Regex(
@"第[^楼]{1,50}楼|Powered\s*/?by[\s\S]*?Dvbbs|Powered\s*/?by[\s\S]*?Discuz",
RegexOptions.ExplicitCapture
| RegexOptions.Multiline
| RegexOptions.IgnoreCase);

///
/// 取KEYWORD
///
private static readonly Regex mKeyWord = new Regex(
@"[^'"">]*)['""]?[^>]*>|[^'"">]*)['""]?\s*name\s*=\s*['""]?keywords['""]?\s*[^>]*>
",RegexOptions.ExplicitCapture| RegexOptions.Multiline| RegexOptions.IgnoreCase);

///
/// 取DESCRIPTION
///
private static readonly Regex mDescription = new Regex(
@"[^'"">]*)['""]?[^>]*>|[^'"">]*)['""]?\s*name\s*=\s*['""]?description['""]?\s*[^>]*>
",RegexOptions.ExplicitCapture| RegexOptions.Multiline| RegexOptions.IgnoreCase);

///
/// 取Tags
///
private static readonly Regex mTag = new Regex(
@"[^'"">]*)['""]?[^>]*>|[^'"">]*)['""]?\s*name\s*=\s*['""]?tagwords['""]?\s*[^>]*>
", RegexOptions.ExplicitCapture | RegexOptions.Multiline | RegexOptions.IgnoreCase);

///
/// 找出是否为垃圾句:后字符号过少,:号前无“说”字,:号后无"关于"
///
private static readonly Regex IsWsMM = new Regex(
@"^[^说\s]{0,8}?[::].{0,10}$",
RegexOptions.ExplicitCapture
| RegexOptions.Multiline
| RegexOptions.IgnoreCase);

///
/// 找出spider写入的url标记
///
private static readonly Regex txtUrl = new Regex(
@"当前URL为:http://(?.*)",
RegexOptions.ExplicitCapture
| RegexOptions.Multiline
| RegexOptions.IgnoreCase);

///
/// 找出spider写入的锚点描述标记
///
private static readonly Regex txtDescription = new Regex(
@"当前链接描述为:(?.*)",
RegexOptions.ExplicitCapture
| RegexOptions.Multiline
| RegexOptions.IgnoreCase);

/////
///// 取需要a标签
/////
//private static readonly Regex cleanFirst = new Regex(
// @"([一-\u9FA5]|[\uFE30-\uFFA0]|[,."");])(?]*>)[^)([一-\u9FA5]|[\uFE30-\uFFA0]|[,."");])", RegexOptions.ExplicitCapture | RegexOptions.Multiline | RegexOptions.IgnoreCase);

#endregion

1.点击菜单栏上面的创建——查询设计。

2.然后再弹出的显示表的对话框中,我们选择订单表,然后点击添加按钮。

3.接着点击菜单栏上面的“删除”,打开删除设计。

4.将员工ID拖拽到下面的设计表格中。

5.同样的方法将星号也拖拽到下面的表格中。

6.在条件一栏写上 =3。

7.点击菜单栏上面的视图就可以查看要删除的记录。

8.点击运行按钮就可以直接将这些记录删除了。



切换到SQL模式,输入以下语句:
delete from acc where add = 0
如果add栏位是字符串型,0两边要加单引号或者双引号

SQL方法:
delete from "表" where add=0
好像没有别的更好的方法。

我要批量删除access表里一个字段里的如下字符
答:假如数据表名为table_name,字段名为name2 要删除符合条件的记录,可以这样写 delete from table_name where name2 like "" or name2 like " " or name2 like ""要全部替换就这样写 Update `table_name` SET `name2` = replace (`name2`,'','') Where `name2` LIKE '%%'Update `tabl...

如何access数据库mdb记录查询批量删除?
答:先用选择查询作出你要删除的东西,然后选择删除查询就ok了

asp中对access数据库进行批量删除实例教程
答:我的access数据库名称叫Bookstore,里面有个books表,表里有内容如下图,我想在asp页面中显示此数据库的表内容,并且在每一条记录后面加入一个删除按钮或者文字来对这个数据库内容进行... 我的access数据库名称叫 Bookstore ,里面有个books表 ,表里有内容如下图,我想在asp页面中显示此数据库的表内容,并且在每一条...

access如何批量删除和查询
答:DELETE FROM iodata WHERE iodate >=#2004-12-25# and iodate <= #2005-06-01 另外表的名字最好不要和字段的名字一样,否则很容易混淆或出错

请教批处理高手:怎么用批处理清空ACCESS数据库中的一个表?
答:使用 delete from 表名 sql语句可以删除指定表内的所有内容 也可以这样,使用 select * from 表名 然后执行 rs.execute("select * from 表名")rs.delete 这样也可以删除所有内容

在VB中如何批量删除ACCESS中的记录.急!!
答:使用SQL conn.execute("delete from 你的表 where 你的字段 in (你要删除的数据)")格式为*;*;*;比如删除一个表为“学生”,ID=25,30,40的,那么 conn.execute("delete from 学生 where id in (25;30;40)")

ACCESS数据库如何用条件删除记录中的字段里的数据?
答:1.用rowid方法 2.用group by方法 3.用distinct方法 1。用rowid方法 据据oracle带的rowid属性,进行判断,是否存在重复,语句如下:查数据:select * from table1 a where rowid !=(select max(rowid)from table1 b where a.name1=b.name1 and a.name2=b.name2...)删数据:delete from table...

如何一键清除ACCESS数据库中的字段数据?
答:删除所有记录,先运行SQL操作查询 delete from 表名 删除表 drop table 表名

ACCESS如何批量删除文件夹中的EXCEL文件
答:查找---替换,就可以全部删除了。试试看。

ASP如何批量删除ACCESS数据库中的内容
答:如果该键为数字型 Delete From [TableName] Where [Item]=1 字符型 Delete From [TableName] Where [Item]=\'1\'