Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to get the maximum character in a dbf 1

Status
Not open for further replies.

chot07

MIS
Feb 4, 2003
3
PH
how can i get the maximum characters in a database stucture? we are working on a library system. the field name 'title' has 254 characters which is the maximum. we would like to reduce the character and get the maximum characters in the title field in the existing database. help me please.
 
Reduce the title field to max 80 characters if you want to be able to search on the title.
Create a memo field fulltitle where you can write entire stories about the title.

Rob.
 
mlv1055,
i agree, only small addition:
SELECT MAX(LEN(alltrim(title))) FROM books
Tesar
 
Yes, you are right. Thanks Tesar.

Maybe a more complete answer would be:

SELECT LEN(alltrim(title)), COUNT(*) FROM books GROUP BY 1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top