SELECT
ID,
NAME
FROM
A
WHERE
ID IN (
(
SELECT
RIGHT (ids, CHARINDEX('.', ids) - 1)
FROM
b
WHERE
ID = 1
),
(
SELECT
LEFT (ids, CHARINDEX('.', ids) - 1)
FROM
b
WHERE
ID = 1
)
)
SQL语句in中使用子查询
最新推荐文章于 2024-10-05 22:24:27 发布