最近几年来,地理信息系统无论是在理论上还是应用上都处在一个飞速发展的阶段。 GIS被应用于多个领域的建模和决策支持,如城市管理、区划、环境整治等等,地理信息成为信息时代重要的组成部分之一; “数字地球”概念的提出,更进一步推动了作为其技术支撑的GIS的发展。 与此同时,一些学者致力于相关的理论研究,如空间感知、空间数据误差、空间关系的形式化等等。 这恰好说明了地理信息系统作为应用技术和学科的两个方面,并且这两个方面构成了相互促进的发展过程。
If you want to read data from a database, the data in it must first be loaded into a recordset. After the ADO database connection is created, as described in the previous chapter, you can then create an ADO recordset. Suppose we have a database named “Northwind”, and we can access the “Customers” table in the database with the following code: We can also use SQL to access data in the “Customers” table: After the recordset is opened, we can extract data from the recordset. Suppose we use a database named “Northwind”, and we can access the “Customers” table in the database with the following code:Create an ADO Table Recordset ¶
<% set conn=Server.CreateObject("ADODB.Connection") conn.Provider="Microsoft.Jet.OLEDB.4.0" conn.Open "c:/webdata/northwind.mdb" set rs=Server.CreateObject("ADODB.recordset") rs.Open "Customers", conn %>
Create an ADO SQL recordset (ADO SQL Recordset) ¶
<% set conn=Server.CreateObject("ADODB.Connection") conn.Provider="Microsoft.Jet.OLEDB.4.0" conn.Open "c:/webdata/northwind.mdb" set rs=Server.CreateObject("ADODB.recordset") rs.Open "Select \* from Customers", conn %>
Extract data from a recordset ¶
<% set conn=Server.CreateObject("ADODB.Connection") conn.Provider="Microsoft.Jet.OLEDB.4.0" conn.Open "c:/webdata/northwind.mdb" set rs=Server.CreateObject("ADODB.recordset") rs.Open "Select \* from Customers", conn for each x in rs.fields response.write(x.name) response.write(" = ") response.write(x.value) next %>