I am trying to join two tables by userid. I tried this:
select *
from crm_public.crm_user
join crm_sare.nl_user u on v.userid=u.userid
;
Unfortunately error occurs: Error Code: 1054. Unknown column 'v.userid' in 'on clause'
What did I do wrong? Thanks for your help.
try assing the alias and be sure of the correct column name
select *
from crm_public.crm_user as v
join crm_sare.nl_user as u on v.userid=u.userid
;
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.