首页 文章
  • -1 votes
     answers
     views

    SELECT字段,其他表中没有其他字段

    我有以下表架构: Table 1 - field1 Table 2 - field1 | field2 我想要做的是选择 field2 from the second table ,其中第二个表中的 field1 在第一个表( field1 )中不存在 . 我有这个: SELECT t2.field2 , t2.field1 FROM table1 t1 , table2 t2 ...
  • 7 votes
     answers
     views

    没有适用于'anti_join'的方法适用于类“因子”的对象

    我想识别dataframe1中存在的行,这些行基于特定列在dataframe2中不存在 . 我使用下面的代码来获取所需的信息 . diffId <- anti_join(dat$ID,datwe$ID) 不幸的是,我遇到了一个错误: UseMethod中的错误(“anti_join”):没有适用于“anti_join”的方法应用于类“factor”的对象 我检查了两个数据帧中所需列的类...

热门问题