1
我想表2基于根据由给出的表1来更新:BIGQUERY分配基于表中的值表1 2
Row sample_id PIK3CA_features
1 huDBF9DD chr3_3268035_CT
2 huDBF9DD chr3_3268043_AT
3 huDBF9DD chr3_3268049_T
表2:
Row sample_id chr3_3268035_CT chr3_3268043_AT chr3_3268049_C
1 huDBF9DD 1 1 null
2 huDBF9De null null null
3 huDBF9Dw null null null
对于每个如果它的samle_id
在表2中对应,那么我想将表2中的PIK3CA_feature
更新为1.
如何通过sample_id
和PIK3CA_features
表1中的值作为用于更新SQL命令中的表2的参数?
我试过了。此处PIK3CA_features在目标表上不可用以更新(引发错误)。在要更新的目标表中,有像chr3_3268035_CT这样的值可以在输入表的PIK3CA_features下使用。任何方式来使用这些值的更新命令? – eilalan
我不明白你的意思。你的问题显示表1有一个'PIK3CA_features'列。如果这不正确,请更新您的问题以更具体。 –
我想更新表2:行sample_id chr3_3268035_CT chr3_3268043_AT chr3_3268049_C,根据表1:行sample_id PIK3CA_features。也许顺序很混乱。感谢您的快速回复 – eilalan