This is a utility class, every method is static.
$Horde: framework/SQL/SQL.php,v 1.30.2.22 2009/09/25 07:55:38 selsky Exp $
Copyright 1999-2009 The Horde Project (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
Located in /SQL/SQL.php (line 17)
Returns a boolean expression using the specified operator. Uses database-specific casting, if necessary.
Escapes all characters in a string that are placeholders for the prepare/execute methods of the DB package.
Build an SQL INSERT/VALUES clause.
This function takes an array in the form column => value and returns an SQL fragment specifying the column names and insert values, with the values properly quoted. For example, the following:
array('foo' => 1, 'bar' => 'hello')
would result in the fragment:
( foo, bar ) VALUES ( 1, 'hello' )
Build an SQL SET clause.
This function takes an array in the form column => value and returns an SQL SET clause (without the SET keyword) with the values properly quoted. For example, the following:
array('foo' => 1, 'bar' => 'hello')
would result in the fragment:
foo = 1, bar = 'hello'
Documentation generated on Sun, 30 Jan 2011 05:22:01 +0000 by phpDocumentor 1.4.3