SQL语句有错误吧

kingsjava 2008-09-30 05:01:58
目前我有两个表,userinfotable表中有u_addtime时间字段,在排序出来时,尽然把全部的数据都显示出来了,而我只是想显示两条记录,是否SQL语句有错误?用的是ACCESS表.
xx_sqlus="select top 2 * from userinfotable,worktimetable where userinfotable.id=cint(worktimetable.uid) and userinfotable.ufu='已安排' order by cdate(userinfotable.u_addtime) desc"
...全文
33 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
tjficcbw 2008-09-30
  • 打赏
  • 举报
回复


select top 2 * from userinfotable,worktimetable where userinfotable.id=worktimetable.uid and userinfotable.ufu='已安排' order by userinfotable.u_addtime desc

jhwcd 2008-09-30
  • 打赏
  • 举报
回复
xx_sqlus="select top 2 * from userinfotable,worktimetable where userinfotable.id=worktimetable.uid and userinfotable.ufu='已安排' order by  userinfotable.u_addtime desc"

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧