gpt4 book ai didi

mysql - MySQL : "Every derived table must have its own alias" 中的错误 1248

转载 作者:太空宇宙 更新时间:2023-11-03 12:22:23 25 4
gpt4 key购买 nike

我正在尝试运行此查询:

SELECT DISTINCT col1 
FROM
(
SELECT CONCAT(retailerId,'_recharge') FROM retailerinformation
WHERE Channel='videocon' AND retailerId='kioskpb20130909045617'
)

但是每次运行我都会得到这个错误:

Error Code : 1248 Every derived table must have its own alias

最佳答案

你的错误很明显。创建别名:

SELECT DISTINCT 
col1
FROM
(select concat(retailerId,'_recharge') from retailerinformation where Channel='videocon' and retailerId='kioskpb20130909045617') AS tmp_table

提示:如果您尝试理解错误,而不仅仅是阅读它们 - 这将是成功的故事。

关于mysql - MySQL : "Every derived table must have its own alias" 中的错误 1248,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19294366/

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