提问人:Shilpi Singh 提问时间:8/10/2023 更新时间:8/10/2023 访问量:43
语法错误:应为“(”或关键字 UNNEST,但获取标识符“t”[10:56] ..SUBSTRING(t.user.email, 1, POSITION('@' IN t.user.email) - 1) 作为 LDAP
Syntax error: Expected "(" or keyword UNNEST but got identifier "t" [at 10:56] ..SUBSTRING(t.user.email, 1, POSITION('@' IN t.user.email) - 1) as ldap
问:
SELECT
sub.ldap,
t.status_update_time_millis,
v.bitrix_lead,
v.current_shift
FROM
(
SELECT
t.user.email,
SUBSTRING(t.user.email, 1, POSITION('@' IN t.user.email) - 1) as ldap
FROM
Table1 AS t
WHERE
t.vendor IN ('ICO_BS')
AND t.status IN ('ACTIVE')
) AS sub
JOIN
Table2 AS v ON sub.ldap = v.ldap
**1.我想拆分表 1 中 email 列的内容并将其保存在 ldap 中, 2. ldap 将用于连接表 1 和表 2
**
答: 暂无答案
评论
t.user.email
表示表 T、列用户和方法电子邮件。这是预期的吗?user
是保留字,请参见 en.wikipedia.org/wiki/List_of_SQL_reserved_words。即需要分隔为(或选择另一个非保留名称。"user"