Android中句子的数据类型 [英] Datatype for a sentence in Android

查看:83
本文介绍了Android中句子的数据类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我必须使用查询将一个句子插入Sqlite数据库.现在,我正在使用数据类型varchar.当我尝试检索该值时,它显示为-(0).

还有其他数据类型可将句子存储到数据库中吗?

谢谢.

Hi,

I have to insert a sentence into the Sqlite database using query. Now I am using the datatype varchar. When I tried to retrieve that value it shows like this-(0).

Is there any other datatype to store sentences into the database?

Thanks.

推荐答案

您应该使用TEXT,但是无论如何,这并不重要,因为SQLite具有静态数据类型,请参见"SQLite版本3中的数据类型" [ ^ ].
我想问题出在您的存储/检索代码中.
You should use TEXT but, anyway, it shouldn''t really matter as SQLite has not static data types, see "Datatypes In SQLite Version 3"[^].
I guess the problem is in your the store/retrieving code.


这篇关于Android中句子的数据类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆