请教:双表查询的问题??奇怪?

bigsir 2003-06-03 10:57:22
SELECT TUser.username, TUser.password, TUser.locate
FROM TUser, TConRes
WHERE TConRes.console_name = 'a' AND TConRes.console_ID = TUser.locate AND
TUser.username = '1' AND TUser.password = '2'
这个语句
其中把 AND TUser.password = '2'
去掉,表里的值可以正常返回
加上就返回不了
...全文
20 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Happiness 2003-06-03
  • 打赏
  • 举报
回复
TUser.password 什么数据类型?
TUser.username = '1' 的记录 TUser.password 是否= '2'??


j9988 2003-06-03
  • 打赏
  • 举报
回复

SELECT * FROM where password = '2'
看看有没有返回?

27,579

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 应用实例
社区管理员
  • 应用实例社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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