我正在尝试创建一个可以在 phpMyAdmin 中编辑的表。我不断收到错误消息“SELECT * FROM "Test2"WHERE ;”
经过一番搜索后,我发现它正在寻找主键,但我已经有了主键。
我看过 YouTube 教程,并且我的设置方式与他们相同。我不明白为什么会收到此错误。
谢谢您的宝贵时间,
最佳答案
不使用WHERE
使用:
SELECT * FROM `Test2`;
或添加有效条件:
SELECT * FROM `Test2` WHERE <column_name> = <value>;
-- like
SELECT * FROM `Test2` WHERE id = 1;
<强> SQL Synax
:
SELECT ...
[FROM table_references]
[WHERE where_condition]
和:
The WHERE clause, if given, indicates the condition or conditions that rows must satisfy to be selected. where_condition is an expression that evaluates to true for each row to be selected. The statement selects all rows if there is no WHERE clause.
关于mysql - phpMyAdmin SELECT FROM 主键问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33694307/