在sqlite中使用sql命令 [英] use sql command in sqlite
本文介绍了在sqlite中使用sql命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在sql server中使用这个命令
选择 FirstName + ' ' + LastName as fullname 来自 person 其中 id = 1
和结果:
Ali Rezaee
但是当在Sqlite Result中使用该命令时:
0.0
whay不能执行???我怎么能这样做??????
Plz帮我....
解决方案
试试这个
SELECT (FirstName || || LastName) AS fullname FROM person 其中 id = 1 ;
Hi !
im use this command in sql server
select FirstName+' '+LastName as fullname From person where id = 1
and the result :
Ali Rezaee
But when Use that command in Sqlite Result is :
0.0
whay cant excute that ??? how I can Do that ??????
Plz help me ....
解决方案
try this
SELECT (FirstName || " " || LastName) AS fullname FROM person where id = 1;
这篇关于在sqlite中使用sql命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文