⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test_query_nostore.phpt

📁 PHP v6.0 For Linux 运行环境:Win9X/ WinME/ WinNT/ Win2K/ WinXP
💻 PHPT
字号:
--TEST--Sybase-CT query without storing--SKIPIF--<?php require('skipif.inc'); ?>--FILE--<?php/* This file is part of PHP test framework for ext/sybase_ct * * $Id: test_query_nostore.phpt,v 1.1 2004/07/11 16:57:38 thekid Exp $ */  require('test.inc');    $db= sybase_connect_ex();  // Create test table and insert some data  var_dump(sybase_query('    create table #test (      id numeric(10, 0) primary key not null,      caption varchar(255) not null,      author varchar(50) not null,      link varchar(255) null,      lastchange datetime default getdate() null    )  ', $db));  var_dump(sybase_query('insert into #test (      id, caption, author    ) values (      1, "Hello", "timm"    )  ', $db));  var_dump(sybase_query('insert into #test (      id, caption, author, link    ) values (      2, "World", "thekid", "http://thekid.de/"    )  ', $db));  var_dump(sybase_query('insert into #test (      id, caption, author    ) values (      3, "PHP", "friebe"    )  ', $db));  // Fetch data  $q= sybase_unbuffered_query('select * from #test order by id', $db, FALSE);  var_dump($q);  while ($row= sybase_fetch_assoc($q)) {    var_dump($row);  }    // Clean up and close connection  var_dump(sybase_query('drop table #test'));  sybase_close($db);?>--EXPECTF--bool(true)bool(true)bool(true)bool(true)resource(%d) of type (sybase-ct result)array(5) {  ["id"]=>  int(1)  ["caption"]=>  string(5) "Hello"  ["author"]=>  string(4) "timm"  ["link"]=>  NULL  ["lastchange"]=>  string(%d) "%s"}array(5) {  ["id"]=>  int(2)  ["caption"]=>  string(5) "World"  ["author"]=>  string(6) "thekid"  ["link"]=>  string(17) "http://thekid.de/"  ["lastchange"]=>  string(%d) "%s"}array(5) {  ["id"]=>  int(3)  ["caption"]=>  string(3) "PHP"  ["author"]=>  string(6) "friebe"  ["link"]=>  NULL  ["lastchange"]=>  string(%d) "%s"}bool(true)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -