在满足条件的元组列表中选择值。

10 浏览
0 Comments

在满足条件的元组列表中选择值。

我有一个元组列表。每个元组有5个元素(对应于5个数据库列),我想进行一个查询

select attribute1 from mylist where attribute2 = something

例如:

personAge = select age from mylist where person_id = 10

有没有办法以某种方式查询元组列表呢?

0