Blog

iPhone SDK Programming Tip – Backticks

There’s a long list of reserved words when using SQLite:

http://www.sqlite.org/lang_keywords.html

A good rule of thumb is to always use backticks (“) around database table and column names to avoid reserved keyword errors when running SQLite queries.

Below is some example Objective-C code from the iPhone  SDK that shows SQLite queries being done through a wrapper class.

This entry was posted in App Development, Tips and tagged , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>