Created
January 13, 2016 13:54
-
-
Save runningdemo/a064a7d2615df03c151e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString *sql = [NSString stringWithFormat:@"insert INTO bookmark (href, title, tags, notes) values ('%@', '%@', '%@', '%@');", | |
bookmark.href, | |
bookmark.title, | |
[bookmark.tags componentsJoinedByString:@","], | |
bookmark.notes | |
]; | |
[self.db executeUpdate:@"insert INTO bookmark (href, title, tags, notes) values (?, ?, ?, ?)", bookmark.href, bookmark.title, bookmark.tags, bookmark.notes]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment