Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi !
im use this command in sql server
SQL
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 ....
Posted

1 solution

try this
SQL
SELECT (FirstName || " " || LastName) AS fullname FROM person where id = 1;
 
Share this answer
 
v2
Comments
‫محم د‬‎ 27-Aug-14 6:57am    
its Ok!
now how i can solve this problem in C# ?
http://upload7.ir/imgs/2014-08/13444238293879343494.png
Thanks7872 27-Aug-14 7:05am    
And why you reverted the accepted solution? Do you think that accepting and rejecting the solution is just used to get attention of the one who solved your issue? If you don't know how to write query in sql lite, you should go through basics first.

Asking questions over and over again will be just waste of time for you and for community as well, seriously.
‫محم د‬‎ 27-Aug-14 7:09am    
no that problem was solved !
i have question agane
when i white that code in C# give this error ! see the picture
its Ok!
now how i can solve this problem in C# ?
http://upload7.ir/imgs/2014-08/13444238293879343494.png
Vinay Mistry 27-Aug-14 7:34am    
try this
string q5 = "SELECT (FirstName || \" \" || LastName) AS LastName FROM person where id = 1";

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900