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

Both sides previous revisionPrevious revision
v5:reference:connection:length [2026/02/06 22:37] mnewnhamv5:reference:connection:length [2026/02/08 10:49] (current) – minor changes to description, add available since dregad
Line 6: Line 6:
 </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.1770413842.txt.gz · Last modified: by mnewnham