我想从 2 个表中选择,其中 2nd id 与第一个 id 中的前 4 个字符相等
SELECT a.*, b.*, substring(a.my_id from 1 for 4)::integer as number
FROM table1 as a
INNER Join table2 as b ON(b.id_2=number) where my_id = 101
^
It produces an error here |
错误:列“编号”不存在
SQL 状态:42703
人物:189