gpt4 book ai didi

mysql - 加入查询问题

转载 作者:太空宇宙 更新时间:2023-11-03 11:18:29 24 4
gpt4 key购买 nike

<分区>

我想用 id 加入 2 个表格。我写了以下查询,但出现错误。我想在 mysql 中同时选择所有列。

select t1.* t2.* table1t1 
JOIN table2t2
ON t1.id = t2.postads_id
where ads_id=1277719543
AND email='myemail@gmail.com';

ERROR: #1064 - 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 't1 JOIN nextpostads t2 ON t1.id = t2.postads_id where ads_id=1277719543 AND emai' at line 1

需要什么修改?

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