预处理 insert php,PHP - Manual: px_insert_record (官方文档)

说明

px_insert_record

( resource $pxdoc

, array $data

) : int

Inserts a new record into the database. The record is not necessarily

inserted at the end of the database, but may be inserted at any

position depending on where the first free slot is found.

The record data is passed as an array of field values. The elements in

the array must correspond to the fields in the database. If the array

has less elements than fields in the database, the remaining fields

will be set to null.

Most field values can be passed as its equivalent php type e.g. a long

value is used for fields of type PX_FIELD_LONG, PX_FIELD_SHORT and

PX_FIELD_AUTOINC, a double values is used for fields of type

PX_FIELD_CURRENCY and PX_FIELD_NUMBER.

Field values for blob and alpha fields are passed as strings.

Fields of type PX_FIELD_TIME and PX_FIELD_DATE both require a long

value. In the first case this is the number of milliseconds since

midnight. In the second case this is the number of days since 1.1.0000.

Below there are two examples to convert the current date or timestamp

into a value suitable for one of paradox's date/time fields.

Note:

This function is only available if pxlib >= 0.6.0 is used.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值