当您join
2 Table但仅使用'*'符号提取第一个表的列时,postgres中是否有办法?这意味着第一个表的所有列。
I will answer this one because I solved it by the help of Mr.@Gordon Linoff.
I use the alias
of the table and use it in the *
symbol.
sample code below:
SELECT a.* FROM table_a as a join table_b as b ON a.id=b.id;
This will only extract the data of table_a
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.