开发者

Using YQL how can I select an item from a feed that contains a colon in its name?

I'm using YQL to parse some web feeds, this one in particular.

SELECT * FROM rss WHERE url='http://www.arena.net/blog/feed'

This query returns a bunch of fields, one of which looks like

content:encoded

How can I sele开发者_运维技巧ct that field to filter? I want to do something like this,

SELECT title, link, pubDate, content:encoded FROM rss WHERE url='http://www.arena.net/blog/feed'

but that is invalid. I've tried escaping with a slash without any luck.


SELECT title, link, pubDate, encoded
FROM rss
WHERE url='http://www.arena.net/blog/feed' 

Here's a console link.


Put the field name in back-quotes, of all things:

SELECT title, link, pubDate, `content:encoded` FROM rss
 WHERE url='http://www.arena.net/blog/feed'

Should work

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜