标签: ios swift sqlite
在sqlite中字符串插值和绑定之间是否有任何区别。 哪一个会表现更好
let firstName = "Aashish" "Select * from employee where firstName = \(firstName)"
或
"Select * from employee where firstName = ?" sqlite3_bind_text(statement,1,firstName.cString(.utf8),-1,SQLITE_TRANSIENT)