English 中文(简体)
qlite3:从当地数据库中检索电话数据
原标题:sqlite3: retrieving data based on month and year from local database in iphone

在我的申请中,我必须储存数据月是明智的一年。 因此,我必须随日期将数据储存到数据库。

我的要求是,如何按期储存数据,以及如何按月和年逐组检索数据。 在我的发言中,我根据选定的月份和年份,提出一个年份和月表。 我必须用一个仪表板显示数据。

我的问题是储存和检索数据类型。

问题回答

使用下列辛加税

SELECT * FROM DATABASE WHERE REQUIREDDATEFIELD LIKE  %2011-01% ;

2011 is supposed to be the year

1月

DATABASE本应是贵方数据库的名称。

要求减少毁林和森林退化所致排放量本应是你希望按月和年分列的领域。

如同 %2011-01%的意思一样,所有包含2011-01号记录都属于特定领域。 可以在大案文的开头或结尾或中间进行,因此,搜索标准的开始和结束都是一个好的习惯。

你只是选定一个月或一年或一年或一年。 或者,如果你想要,你就使用小组。

我知道这一答案是相当含糊和笼统的,但由于你的问题含糊不清。 或许需要更加具体。 不仅解释你想要做什么,而且解释你所尝试的是什么,以什么方式工作。





相关问题
sqlite3 is chopping/cutting/truncating my text columns

I have values being cut off and would like to display the full values. Sqlite3 -column -header locations.dbs " select n.namelist, f.state, t.state from names n left join locations l on l.id = n.id ...

Entity Framework with File-Based Database

I am in the process of developing a desktop application that needs a database. The application is currently targeted to SQL Express 2005 and works wonderfully. However, I m not crazy about having ...

Improve INSERT-per-second performance of SQLite

Optimizing SQLite is tricky. Bulk-insert performance of a C application can vary from 85 inserts per second to over 96,000 inserts per second! Background: We are using SQLite as part of a desktop ...

Metadata for columns in SQLite v2.8 (PHP5)

How can I get metadata / constraints (primary key and "null allowed" in particular) for each column in a SQLite v2.8 table using PHP5 (like mysql_fetch_field for MySql)? sqlite_fetch_column_types (OO:...

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签