当前位置: 首页 > 网络学院 > 服务端脚本教程 > ADO > ADO NumericScale 属性
The NumericScale property sets or returns a byte value that indicates the number of digits stored to the right side of the decimal point for a numeric value of a Field or Parameter object.
NumericScale属性的作用是:设置或返回数值型字段或参数对象中所支持的小数位数(以字节数表示)。
Object对象 | Description of the NumericScale Property |
---|---|
Field | The NumericScale has read/write permissions when used to create a Recordset, but it has read-only permissions when you open an existing Recordset |
Parameter | The NumericScale property has read/write permissions on a Parameter object 对于一个参数对象来说,NumericScale属性的权限是可读/可写 |
object.NumericScale |
<% 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 orders", conn response.write(rs.Fields(0).NumericScale) rs.Close conn.close %> |