此查询不起作用,但我希望它足以让您了解我需要的内容:
SELECT p.ID, lat.l
FROM hlp_posts AS p
WHERE p.ID
IN (SELECT pm.post_id, pm.meta_value AS l FROM hlp_postmeta AS pm WHERE pm.meta_key = "hlp_latitude") lat
我需要的是在主要SELECT中获取在子查询中选择的值(lat.l
)
我可以通过JOIN获得它,但我不能使用它。
答案 0 :(得分:2)
您可以使用static inline int NF_HOOK(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk,struct sk_buff *skb, struct net_device *in, struct net_device *out,int (*okfn)(struct net *, struct sock *, struct sk_buff *))
代替,例如:
JOIN