SQL,sql教程

來源:互聯網
上載者:User

SQL,sql教程

SQL如下:

update mapping_nj_roads
set municipality='227'
from mapping_geodata_boundary a
where a.supportfile_code='227' and
(a.boundary.STContains(mapping_nj_roads.geom)=1 or a.boundary.STIntersects(mapping_nj_roads.geom)=1)

 

#1 mapping_nj_roads 是新澤西的所有的道路的表,geom是路的geometry欄位

#2 mapping_geodata_boundary是新澤西所有的boundary的表,boundary是geometry欄位

#3 227是bergen county的一個township

#4 用到的方法:STContains【包含】、STIntersects【相交】

 


sql server 2008 的密鑰是好多?可以用得起的

SQL Server 2008 序號:
Developer: PTTFM-X467G-P7RH2-3Q6CG-4DMYB
Enterprise: JD8Y6-HQG69-P9H84-XDTPG-34MBB
 
sql server 2008 的密鑰是好多?可以用得起的

SQL Server 2008 序號:
Developer: PTTFM-X467G-P7RH2-3Q6CG-4DMYB
Enterprise: JD8Y6-HQG69-P9H84-XDTPG-34MBB
 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.