[英]Extract in, out in OrientDB query
I have a query in OrientDB as: 我在OrientDB中有一个查询:
select in, out from E_Employe
I need to put instead of "in" some attributes from "User" (for example "username", "email"), and instead of "out", some attributes from "Company" (for example, "name", "address"), and I don't know how to do it. 我需要将“用户”中的某些属性(例如“用户名”,“电子邮件”)而不是“输入”中,而不是“输出”中,将“公司”的某些属性(例如“名称”,“地址”)放入”,而我不知道该怎么做。
You can just use dot notation: 您可以只使用点表示法:
select
in.username as name, in.email as email,
out.name as companyName, out.address as companyAddress
from E_Employe
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.