如何获得过滤器的结果

时间:2015-12-15 19:28:55

标签: sqlite.swift

很抱歉,但我是斯威夫特的新手,我坚持了

let timestamp = Table("time_stamps")
let t_tabelle = Expression<String>("tabelle")
let t_stamp = Expression<String>("TIME_STAMP")

let stmt = timestamp.filter(t_tabelle == "member")

print ("Stamp: \(stmt[t_stamp]) ")

输出是:

  

邮票:表达式(模板:“\”timestamp \“。\”TIME_STAMP \“”,绑定:[])

我如何获得过滤表的项目?

谢谢你的帮助 chazon

1 个答案:

答案 0 :(得分:0)

尝试添加此内容;

    for aTimeStampEntry in try db.prepare( timestamp.select(t_tabelle, t_stamp))
    {
        ....

    }