sqlserver 左连接的写法
发布时间:2020-12-12 14:44:04 所属栏目:MsSql教程 来源:网络整理
导读:select a.req_id,a.port_in_did,a.acctid,a.status,a.country,a.port_in_provider,b.calling_plan_name,c.filetype,a.first_name,a.last_name,a.street_number,a.street_number_suffix,a.pre_directional,a.street_name,a.street_suffix,a.post_directional,
select a.req_id,a.port_in_did,a.acctid,a.status,a.country,a.port_in_provider,b.calling_plan_name,c.filetype,a.first_name,a.last_name,a.street_number,a.street_number_suffix,a.pre_directional,a.street_name,a.street_suffix,a.post_directional,a.secondary_location_description,a.unit,a.city,a.state,a.zip,a.zip4 from bb_DID_PORT_IN_REQUEST a,bb_nextone_calling_plan b,bb_did_port_in_upload c where a.port_in_provider=b.server_group_id and a.acctid*=c.acctid and port_in_did = '2012259193' old ------------------------------------ new select a.req_id,a.zip4 from bb_DID_PORT_IN_REQUEST a left join bb_did_port_in_upload c on a.acctid=c.acctid inner join bb_nextone_calling_plan b on a.port_in_provider=b.server_group_id where port_in_did = '2012259193' (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |