2013-04-25 46 views
0

Google查詢語言中是否有concat函數?GQL中是否有concat函數?

鑑於表X

FName |LName 
--------|------ 
Bob  |Smith 
Larry |Potts 

詢問查詢:

Select Concat(FName, LName) from X 

我想:

BobSmith 
LarryPotts 

就如何實現這一目標的任何想法?

回答

1

只需將它們連接起來手動aftewards:

query = GqlQuery(...) 
for result in query: 
    fullname = result.FName+result.LName 
    # Do something with fullname