
Casting an INTEGER or REAL value into TEXT renders the value as if via sqlite3_snprintf() except that the resulting TEXT uses the enCoding of the database connection.
所以你可以做这样的事情:
select cast(some_integer_column as text) from some_table;
或者,根据您想要做的,您可以将数字视为字符串,并让sqlite强制其认为合适的类型:
select some_int || ' pancakes' from some_table;select some_int || '' from some_table;总结
以上是内存溢出为你收集整理的在SQLite的SELECT查询中将整数转换为文本?全部内容,希望文章能够帮你解决在SQLite的SELECT查询中将整数转换为文本?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)