Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FQL select column name "AS" alias

I am using JSDK, but the problem is for sure in FQL request.

I am trying select which makes basic operation and i want to name the result. But facebook always name it "anon"

SQL example:

SELECT (register_time - unregister_time) AS time_registered FROM users where id='1';

It is all about keyword AS.

FQL with problem:

SELECT 1 + 2  from user where uid=me();

It works, but result 3 will have name anon. But I want something like this:

SELECT 1 + 2 AS result  from user where uid=me();

Unfortunately it doesn't know "AS".

Of course I can get value from "anon". But it is quite unhandy when there is more these values.

Is there any way how to name it?

like image 917
Jindra Avatar asked Mar 06 '12 08:03

Jindra


1 Answers

Currently facebook FQL doesn't supports select column name "AS" alias. We all love to have to this feature. It's really unhandy to access such instances.

So we have to wait for some time.

like image 140
Somnath Muluk Avatar answered Oct 24 '22 20:10

Somnath Muluk