DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: How to search for all names with exactly 8 characters long in SQL.

  1. #1
    Join Date
    May 2005
    Posts
    2

    How to search for all names with exactly 8 characters long in SQL.

    Could someone please tell me the SQL script for searching for all names in a table with exactly 8 characters long?

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    WHERE length(foo) = 8
    Jeff Hunter

  3. #3
    Join Date
    Aug 2005
    Posts
    1
    Hi Friend,

    U can use

    select * from tablename where length(name) = 8 ;

    bye

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width