需要根据两个不同的变量加入两个表。我可以在单独运行select查询时获取输出,但在执行连接时,查询被挂起并且必须强行停止。
Select CAST(n.representation->'m2m:cin'->'rn' as text)
from notification n,
contentinstance
where CAST(n.representation->'m2m:cin'->'rn' as text) = name
limit 2;
列:
name
= character varying(200)
representaion
= jsonB