简体   繁体   English

在OrientDB查询中提取,提取

[英]Extract in, out in OrientDB query

I have a query in OrientDB as: 我在OrientDB中有一个查询:

select in, out from E_Employe
  • "in" is the link to a vertex from class "User"; “ in”是从“ User”类到顶点的链接;
  • "out" is the link to a vertex from class "Company"; “ out”是从“ Company”类到顶点的链接;
  • "E_Employee" is the edge between "User" and "Company". “ E_Employee”是“用户”和“公司”之间的边缘。

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM