ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:length

Differences

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

Link to this comparison view

Next revision
Previous revision
v5:reference:connection:length [2026/02/06 22:15] – created mnewnhamv5:reference:connection:length [2026/02/08 10:49] (current) – minor changes to description, add available since dregad
Line 3: Line 3:
 <WRAP right box> <WRAP right box>
 ==Syntax== ==Syntax==
-  string length(string columnName)+  string length(string $columnName)
 </WRAP> </WRAP>
 ===== Description ===== ===== Description =====
-The method ''length()'' returns a database specific SQL statement that returns the length of data in a field. This happens even if the field is defined as a fixed length CHAR field, because the field is trimmed before the length of the data is obtained.+The method ''length()'' returns a database-specific SQL statement that retrieves the length of data in a field. This happens even when the field is defined as a fixed-length CHAR field, because the field's contents is trimmed before the length of the data is obtained. 
 + 
 +Available since ADOdb 5.23.0. 
 ===== Usage ===== ===== Usage =====
 <code php> <code php>
v5/reference/connection/length.1770412535.txt.gz · Last modified: by mnewnham