函数:pg_FieldIsNull()

2004年12月03日 01:27 查看1499次 作者:   【

pg_FieldIsNull

检查字段是否有资料。

语法: int pg_fieldisnull(int result, int row, mixed field);

返回值: 整数

函数种类: 数据库功能

内容说明

本函数可检查指定的字段是否有资料。参数 result 为查询结果代码。参数 row 为指定列数,第一个的索引值是 0。参数 field 为指定的字段。返回 0 表示有资料,返回 1 表示无资料 (Null)。


下面为使用 LOB (Large Object) 的例子

<?php
$database = pg_Connect ("", "", "", "", "jacarta");
pg_exec ($database, "begin");
  $oid = pg_locreate ($database);
  echo ("$oid\n");
  $handle = pg_loopen ($database, $oid, "w");
  echo ("$handle\n");
  pg_lowrite ($handle, "gaga");
  pg_loclose ($handle);
pg_exec ($database, "commit")
pg_exec ($database, "end")
?>

责任编辑:rongsijing

给文章打分...

平均分:1.7(12 次)

-5 -4 -3 -2 -1 0 1 2 3 4 5
0

顶一下

发表我的见解...

  • 您的大名: 留空为匿名
  • 您的主页:
  • 您的邮箱: