0

为什么我总是在以下内部连接中遇到语法错误:

SELECT 'myapp_instagram_shop'.id 
FROM 'myapp_instagram_shop'  
INNER JOIN  'myapp_instagram_shop_picture' 
    ON  'myapp_instagram_shop'.id =  'myapp_instagram_shop_picture'.shop_id;

错误是:

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 ''myapp_instagram_shop'
INNER JOIN 'myapp_instagram_shop_picture' ON 'sh' at line 1
4

1 回答 1

2

尝试

SELECT myapp_instagram_shop.id FROM myapp_instagram_shop  INNER JOIN  myapp_instagram_shop_picture ON  myapp_instagram_shop.id = myapp_instagram_shop_picture.shop_id;
于 2013-09-26T01:59:49.353 回答