查看: 1026|回复: 3
|
SQL 的问题。
[复制链接]
|
|
我的电脑有这个问题,
却不知道如何解决。
不知道那位可以帮我。
Discuz! info: MySQL Query Error
SQL: SELECT groupid, grouptitle FROM cdb_usergroups WHERE groupid IN ()
Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
Errno.: 1064
谢谢了! |
|
|
|
|
|
|
|
发表于 14-9-2005 10:06 AM
|
显示全部楼层
1. 用 phpMyAdmin 來測試你的 sql command
2. 避免使用 keyword 來做你的 table / column name
3. 使用 mysql 不標準的 'table name' 'column name' |
|
|
|
|
|
|
|
发表于 14-9-2005 02:20 PM
|
显示全部楼层
原帖由 sats 于 14-9-2005 09:18 AM 发表
我的电脑有这个问题,
却不知道如何解决。
不知道那位可以帮我。
谢谢了!
你的 groupid IN () 在 “(” 和“)”之间至少一定要有一个value.
i.e : select * from person where title_code in ('MS', 'MR'); |
|
|
|
|
|
|
|

楼主 |
发表于 16-9-2005 11:48 PM
|
显示全部楼层
谢谢大家的帮忙,
可是我是电脑盲,
可否教我如何
1. 用 phpMyAdmin 來測試你的 sql command
2. 避免使用 keyword 來做你的 table / column name
3. 使用 mysql 不標準的 'table name' 'column name'
呢?
谢谢! |
|
|
|
|
|
|
| |
本周最热论坛帖子
|