I was curious to know if there is a way to problematically get s list of all the FQL tables, a list of all their columns and which columns are index-able. I can't find anything in the documentation short of following the docs to create data objects defining these details for each FQL table.
Well, I haven't tried myself, but this seems to do exactly what you've asked for.
https://github.com/jwerle/fql-workbench/blob/master/README.md
I think it doesn't exists, however, Facebook has a complete reference about available tables, with all their respective columns and column data types:
https://developers.facebook.com/docs/reference/fql/
Regards.
It is possible to implement a show-tables or describe functionality in FQL using the tables 'column' and 'table'. This is what https://developers.facebook.com/docs/reference/fql/ says about it:
column - An FQL table that documents columns in other FQL tables
table - An FQL table containing information about other FQL tables
We can query these tables using FQL to find out the schema of the regular tables.
Related
I have a list of tables in an Oracle Schema. I use SQL Developer to build my queries. I can click on each table within the schema in SQL Developer and get access to a number of tabs, one of which is 'Details':
Within the 'Details' window, I have a property called 'Comments' which contains a description of what the table is for.
Now, I have quite a few tables and I want to somehow grab the table name and description in that comments property for each table and put it into a spreadsheet. Is there any way to do that in SQL Developer? Maybe a query? Or some built in function that iterates over each table and provides that information? I thought about using python, but I'm not sure I can access the 'Details' of the table.
Every once in a while, I find a solution before i have some of you awesome people answer for me, so i thought I'd post up what I found. This is the query I found that works:
select * from all_tab_comments where owner = 'your_schema_name_here'
This provides a list of all the tables in the schema (owner) I want and provides the comments I was looking for. From there, I can just export to an excel spreadsheet.
Why the next Facebook FQL:
select column_name from columns where table_name = 'user' order by column_name
return are different list of columns then in api page http://developers.facebook.com/docs/reference/fql/user
for example it return field 'can_viewer_send_poke_message' but facebook tell that
(#602) can_viewer_send_poke_message is not a member of the user table
So, I just trying to automate process to keep some hql queries with full list of Columns of each hql table.
May be is there some other way to get for each table column list as string separated with ","?
This is a private field for Facebook Developers of the Official Poke Application for iPhone. It checks whether the users listed (friends) can use the poke application.
I am trying to find the distinct user IDs on comments to a post. I know this can be done with SQL with the DISTINCT clause, but I am not sure how it might be done with fql. If there is not any way, what would be one approach to doing so, assuming I pull down all the fromid on a post_id?
FQL isn't like SQL in the sense that you don't get duplicates for the same reasons SQL does (JOINs, etc.), so no, there's no DISTINCT keyword that I know of. If you're having an issue parsing a specific query, you should post that so we can help further.
The Facebook FQL user table has a column called is_minor.
The Facebook platform documentation does not indicate that any special Permission is required to access the data in this column. However, all of my attempts to get any data from this column always return NULL. And I've tried everything I can think of...
(I have no problem accessing all sorts of other data from other columns in the FQL user table.)
Does anyone know... is the is_minor column simply not populated at all? Has anyone had any success accessing data from this column?
Well, it turn out this is actually a bug. Facebook has confirmed and assigned it.
http://developers.facebook.com/bugs/217123218363794
(Phew. I'm not crazy.)
In PgAdmin, is it possible to search for a value in ALL tables? In phpmyadmin this is possible and quite convenient. You search for an ID value and find all the tables in which it occurs. I can't seem to find this function in PgAdmin.
Does it exist?
It currently doesn't exist in PgAdmin.
There's custom function for this. You can use it from Query tool. See [How to search a specific value in all tables (PostgreSQL)?
](as of today, there are two modifications in answers there that include column name, progress reporting)