Thuộc tính chính xác ADO


❮ Tham chiếu đối tượng trường hoàn chỉnh

Thuộc tính Precision đặt hoặc trả về giá trị byte là số chữ số tối đa được phép khi biểu diễn các giá trị số trong đối tượng Tham số hoặc Trường.

Object Description of the Precision Property
Field

The Precision property is normally read-only on a Field object, but for new Field objects that have been added to the Fields collection of a Record, it is read/write after the Value property for the Field has been specified and the provider has successfully added the new Field by calling the Update method of the Fields collection

Parameter The Precision property has read/write permissions on a Parameter object

Cú pháp

objectname.Precision

Thí dụ

<%
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).Precision)

rs.Close
conn.close
%>

❮ Tham chiếu đối tượng trường hoàn chỉnh