Possible Duplicate:
How to implement Primary Key and Foreign Key Table Data in Class Structure in Iphone Application
How to Select Foreign Key and Primary Key table data for display all data into detailviewcontroller Of rootTableView using this query
select
TaskId, TaskName, Category, StartDate, DueDate, Status
from
ToDo, Category
Where
ToDo.TaskId = Category.TaskId.
Thanks in advance….
if (sqlite3_open([dbPath UTF8String], &database) == SQLITE_OK) {