ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:concat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
v5:reference:connection:concat [2016/01/18 02:09] – [Usage] mnewnhamv5:reference:connection:concat [2016/01/18 02:13] – [Usage] mnewnham
Line 7: Line 7:
 </WRAP> </WRAP>
 ===== Description ===== ===== Description =====
-The function ''concat()'' takes an input CSV list of strings, and returns a database-specific string of concatenated values. It is important to recognize the difference between concatenating a database field or a string whn using the method in an SQL statement+The function ''concat()'' takes an variable list of strings, and returns a database-specific string of concatenated values. It is important to recognize the difference between concatenating a database field or a string whn using the method in an SQL statement
 ------------------------------- -------------------------------
 ===== Usage ===== ===== Usage =====
Line 14: Line 14:
  * Assume MySQL database  * Assume MySQL database
  */  */
-$list = 'VOGON','POETRY','READING'+$string $db->concat('VOGON','POETRY','READING');
- +
-$string = $db->concat($list);+
  
 /* /*
v5/reference/connection/concat.txt · Last modified: 2016/01/29 21:34 by mnewnham