select * from betcnsite where check=0 order by id

tommycpma 2003-05-24 10:12:10
select * from betcnsite where check=0 order by id
这条语句原来没什么错误
后来我重装了mysql,就出错了
改成
select * from betcnsite where 'check'=0 order by id
就没有错误了
这是怎么回事儿呀?
真奇怪!
...全文
44 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
tommycpma 2003-06-06
  • 打赏
  • 举报
回复
谢谢大家
原来是我的mysql默认字符集没有设置
我晕倒!
Arbow 2003-05-28
  • 打赏
  • 举报
回复
or
select * from betcnsite where `check`=0 order by id


注意是键盘1左边的`,不是用单引号
bombshell 2003-05-25
  • 打赏
  • 举报
回复
select * from betcnsite where check='0' order by id
Ltaotao007 2003-05-24
  • 打赏
  • 举报
回复
是呀,对中文支持也不太好呀,?毕竟MYSQL好不是很强!
gooddot 2003-05-24
  • 打赏
  • 举报
回复
mysql时不时会出些问题;特别是在LINUX下;
不过总的来说,mysql 性能还不错;
shaokun305 2003-05-24
  • 打赏
  • 举报
回复
mysql 其实还是很好用的,对于你的问题好象是和字符有关,至于具体为什么,我也不是很清楚,用mysql,如果在windows下,作好用可是化工具:mysql-front 或是:MS mysql manager2
比较直观,还很好处理

56,687

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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