gpt4 book ai didi

mysql - phpMyAdmin SELECT FROM 主键问题

转载 作者:行者123 更新时间:2023-11-29 21:50:30 24 4
gpt4 key购买 nike

我正在尝试创建一个可以在 phpMyAdmin 中编辑的表。我不断收到错误消息“SELECT * FROM "Test2"WHERE ;”

enter image description here

经过一番搜索后,我发现它正在寻找主键,但我已经有了主键。

enter image description here

我看过 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com