| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
Function ModuleFunction Module – Module to handle SQL function abstraction
DescriptionThe Function module provides methods for executing non-standard SQL database functions in a consistent way. The following document lists the available methods, providing examples of their use. To include the Function module functionality, you need to load it first. Loading the Function module
<?php
After including the module, you can access its methods like this: Get the length of a string expression
<?php
Further in the document the PHP5-compatible way will be used. Concatenate strings
<?php
Execute a Stored ProcedureSupposing we have the following Stored Procedure (MySQL syntax): DELIMITER // CREATE PROCEDURE procedure1 (IN parameter1 INTEGER) BEGIN DECLARE variable1 CHAR(10); IF parameter1 = 17 THEN SET variable1 = 'birds'; ELSE SET variable1 = 'beasts'; END IF; INSERT INTO table1 VALUES (variable1); END // DELIMITER ; we can call it this way: Execute a Stored Procedure
<?php
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「Function Module」をGoogle検索
|