Simple SQL question (I'd say)

Discussion in 'Databases' started by le007, Sep 22, 2007.

  1. #1
    Hey all,

    INSERT INTO `townsandstates` VALUES ('', 'Nyc', 'NEWYORK', 'New York City');


    I want NEWYORK to read NEW-YORK-CITY (for url rewrite purposes) but when I exceed 10 characters the search doesn't work anymore?

    I'd like it like this:
    INSERT INTO `townsandstates` VALUES ('', 'Nyc', 'NEW-YORK-CITY', 'New York City');

    or even
    INSERT INTO `townsandstates` VALUES ('', 'Nyc', 'NEWYORKCITY', 'New York City');


    Any ideas?
    Leo
     
    le007, Sep 22, 2007 IP
  2. kazhar

    kazhar Guest

    Messages:
    27
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Which is the type of the field ? With all type, you can define a max number of characters. It seems your max number is too smal.
     
    kazhar, Sep 22, 2007 IP
  3. le007

    le007 Well-Known Member

    Messages:
    481
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #3
    Thanks buddy - thats what it was!
     
    le007, Sep 22, 2007 IP