本人用的是SQL Server: 数据插入语句: select * into 表b from 表1 where 时间字段 between '21-10-2' and '203-5-6' and 查询状态<>'已查询'数据修改语句: update 表1 set 查询状态='已查询' where 时间字段 between '21-10-2' and '203-5-6' and 查询状态<>'已查询'
不好意,记住去重复数据了,以下是最终回复 本人用的是SQL Server: 数据插入语句: select distinct * into 表b from 表1 where 时间字段 between '21-10-2' and '203-5-6' and 查询状态<>'已查询'数据修改语句: update 表1 set 查询状态='已查询' where 时间字段 between '21-10-2' and '203-5-6' and 查询状态<>'已查询'
数据插入语句:
select * into 表b
from 表1 where 时间字段 between '21-10-2' and '203-5-6' and 查询状态<>'已查询'数据修改语句:
update 表1
set 查询状态='已查询'
where 时间字段 between '21-10-2' and '203-5-6' and 查询状态<>'已查询'
本人用的是SQL Server:
数据插入语句:
select distinct * into 表b
from 表1 where 时间字段 between '21-10-2' and '203-5-6' and 查询状态<>'已查询'数据修改语句:
update 表1
set 查询状态='已查询'
where 时间字段 between '21-10-2' and '203-5-6' and 查询状态<>'已查询'