我的一个ADOQuery中的SQL语句如下:
select max(room.id) id,max(room.place) place,max(room.re) re
from room
where room.state=0
and room.room_level=:level
and (select count(sheet_items.id)
from sheet_items
where sheet_items.room=room.id
and (not(sheet_items.start_time>:end_time or
sheet_items.end_time<:start_time)))=0
group by room.id当用DBGrid用其中的数据时,老是提示:Parameter 对象被不正确的定义,提供了不完整或不一致的信息。
select max(room.id) id,max(room.place) place,max(room.re) re
from room
where room.state=0
and room.room_level=:level
and (select count(sheet_items.id)
from sheet_items
where sheet_items.room=room.id
and (not(sheet_items.start_time>:end_time or
sheet_items.end_time<:start_time)))=0
group by room.id当用DBGrid用其中的数据时,老是提示:Parameter 对象被不正确的定义,提供了不完整或不一致的信息。
解决方案 »
- 数据库中两张数据表的值运算问题
- Tcp客户端程序收不到服务器发来的数据包
- 如何选定DBgrid中显示的所有记录(在线等)
- 急需delphi6.0开发人员指南 的电子书
- 为什么这个SQL不能运行?
- 怎样实现多表连接数据库?
- Delphi6 企业版的安装序列号是多少??? 快,马上结帐!
- TDBChat中用什么属性实现“3d条,3d累加条,3d纵向条,3d饼图,2d条,2d累加条,2d纵向条,2d饼图”
- 一个Service Application的问题
- Delphi7查询SQL Server2008的效率问题
- 一个简单的select语句,错在哪里,该怎么改正
- InternetExpress中的定制标识符不能触发?
from room
where room.state=0
and room.room_level=:level
and (select count(sheet_items.id)
from sheet_items
where sheet_items.room=room.id
and (not(sheet_items.start_time>:end_time or
sheet_items.end_time<:start_time)))=0
group by room.id
AdoQuery.Parambyname("Start_time"):=...