董晓琴 冒个泡:帮忙啊,大虾!在线等!——sql 问题

来源:百度文库 编辑:高校问答 时间:2024/05/10 09:32:17
1:写出一条Sql语句: 取出表A中满足时间2006年1月1日至2006年1月31日的纪录(时间字段为time)
2:写出一条Sql语句:清除A表中的数据,但不删除表。
3:

好久不用了
忘记了
可是用查询做
然后里面sql语言自动出来了
有选项
就可以查看

1 select * from A where dt between('2006-1-1','2006-1-31')
2 delete from A
3 ........

select *
from table a
where a.time>=..and a.time<=..

第二个嘛
drop table a
然后创建一个,哈哈