declare @QueryStr varchar(6000)
select @QueryStr='select * from cinema where name in(''东方新世纪影城'') and film in(''孔雀'',''天下无贼'',''一个陌生女人的来信'',''超人总动员'') and playdate<=''2005-2-25'' and enddate>=''2005-2-25'' order by playdate'
select @QueryStr='select * from cinema where name in(''东方新世纪影城'') and film in(''孔雀'',''天下无贼'',''一个陌生女人的来信'',''超人总动员'') and playdate<=''2005-2-25'' and enddate>=''2005-2-25'' order by playdate'
解决方案 »
- sql server2005,怎么在资源管理器里 手动添加触发器啊?
- 统计数据库中所有表的字段和数据特征
- 急:SQL连接问题
- 新的问题又来拉~~50分~一个数据统计及排序问题,高手起来帮帮忙呀~~
- sql server 中字段定成bit类型,也就是逻辑型,在 VB中如何用ado记录集进行存取与编辑呢?
- text 和char 有什么区别?若有一段文本,格式较为漂亮,欲存SQL中,应选用那种类型?
- 1000万条数据用什么数据库好?
- 索引創建好後如何使用,請給段SQL代碼。
- lost communication with sql server
- 权限设置问题
- 请教关于Sql Server 2000 Desktop Enginer数据库的一些简单问题
- 查询速度太慢,求教优化方法
select @QueryStr='select * from cinema where name in(''东方新世纪影城'') and film in(''孔雀'',''天下无贼'',''一个陌生女人的来信'',''超人总动员'') and playdate<=''2005-2-25'' and enddate>=''2005-2-25'' order by playdate'
exec (@QueryStr)