对于简单的db,sql join不能在sql razor上工作

时间:2014-01-10 07:30:46

标签: sql join

我正在使用join来获取数据,但它显示语法错误我正在使用sql razor这里是我的查询

SELECT * 
FROM   contentcommenttracking 
       JOIN contentmaster 
         ON contentcommenttracking.userid = contentmaster.contentaddedbyuserid 
WHERE  username = 'imran.husain' 

这是sql razor

中显示的错误

错误:

 Query = SELECT * from ContentCommentTracking JOIN ContentMaster
 ON ContentCommentTracking.UserID=ContentMaster.ContentAddedByUserID
 where UserName='imran.husain'

这是我得到的链接,显示亚马逊简单数据库不支持JOIN

http://www.packtpub.com/article/amazon-simpledb-versus-rdbms

1 个答案:

答案 0 :(得分:0)

试试这个

SELECT 
        * 
FROM   
        contentcommenttracking 
    JOIN 
        contentmaster 
            ON  contentcommenttracking.userid = contentmaster.contentaddedbyuserid 
WHERE  
        contentcommenttracking.username = 'imran.husain' ;

你的不明确